0

I am currently using a woocommerce theme, Hotel (https://woocommerce.com/products/hotel/).

I just recently created a home page and a blog page the way way it is explained in this site: https://www.wpbeginner.com/wp-tutorials/how-to-create-a-separate-page-for-blog-posts-in-wordpress/

Now what I want to do is: Create a home page with some fixed element that never change (i.e.: photos) and then add some dynamic elements (like post, from my blog page)… Assuming I have a blog, I would like to include the latest post at the end of the home page…

I enquired this with Woocommerce, and they said: “This is possible yes, but it requires some custom coding to adjust the home page.This can be done using hooks, are you familiar with using hooks? If not, I’d recommend having a look at that document: https://docs.woocommerce.com/document/introduction-to-hooks-actions-and-filters/

Also, I’d recommend having a look at the functions.php file that contains all hook for the Hotel theme: wp-content/themes/hotel/inc/class-hotel-template.php”

Now.. I started reading this but at some point got lost…

I also realised that there is a place in my dashboard where I can create some hook and installed them in my theme…

Would anyone have a hook that can help me to customise the home page the way I want?

anyone can assist with this?

1 Answer 1

0

I think I know what you are asking. The theme you are using is a fixed layout for each page and want to modify this layout for the home page.

If this is true, most likely your theme is using templates and does not allow additional features, via plugins, to be used.

Assuming the above, you would need to find the theme's template, a php file used to layout the look and function, for the particular page. It is usually stored under the theme folder. If you know PHP, then this should be no problem to modify with the features you desire. It will be a lot of work, but do-able.

In your case, that template is: wp-content/themes/hotel/inc/class-hotel-template.php

A secondary option, and you may shutter to think of it, is don't use that theme. Copy the look and feel, but by using a theme with a builder (such as themify) you can add any features you want, including the look. What they are showing is not remarkable.

https://themify.me/themes (note, I do not work for the company, I just use them for a ton of websites)

1
  • Debbie:Thanks for your reply. What I try to say before is that there is a way to modify the theme page without touching the php file. That is done via hooks.. Do you know how to use hooks? Commented Mar 12, 2019 at 2:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.