最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - customize woocommerce templates and display store on home

programmeradmin5浏览0评论

I'm making some changes to a custom template for a website that wants to add the woocommerce support to create a little shop. I've followed the instruction to add the theme support to the theme, in my function file I have added:

add_theme_support('woocommerce');

and the relative hook after_setup_theme. I'm not experienced with this plugin, it's the first time I'm using it and I'm still reading the docs. Can anyone explain to me how I can customize the woocommerce templates to use bootstrap 4 and how I can display the products or the store pages on the index of my theme? will the get_template_part('woocommerce/template-name') work or there are some particular procedure to follow?

I'm making some changes to a custom template for a website that wants to add the woocommerce support to create a little shop. I've followed the instruction to add the theme support to the theme, in my function file I have added:

add_theme_support('woocommerce');

and the relative hook after_setup_theme. I'm not experienced with this plugin, it's the first time I'm using it and I'm still reading the docs. Can anyone explain to me how I can customize the woocommerce templates to use bootstrap 4 and how I can display the products or the store pages on the index of my theme? will the get_template_part('woocommerce/template-name') work or there are some particular procedure to follow?

Share Improve this question asked Jan 15, 2020 at 18:35 sialfasialfa 32910 silver badges29 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 1

Follow This and Make sure Your Shop or which page you want for default Home page and Then Save Button.

Thanks

You can change your "reading Settings" in Settings menu,

Please select "Your home page displays" = check to a static page and select shop from the dropdown menu.

after these changes your index page will be shop page.

发布评论

评论列表(0)

  1. 暂无评论