- This topic has 12 replies, 4 voices, and was last updated 7 years, 9 months ago by
Tom.
-
AuthorPosts
-
October 30, 2015 at 2:45 am #148816
Mathijs Kooij
Thanks for looking into this. Support here is great. On my site (bestevaer.org) I only want to show the header on the frontpage and not on other pages. I want the pagetitel to never show. I can hide them on almost all the pages but on a few it doesn’t work. This is on Woocommerce pages and on the blog page (nieuws). Also choosing content, no sidebar doesn’t work
October 30, 2015 at 4:15 am #148850Mathijs Kooij
I skiped hiding the header on all pages so forget about that. Only the problem that hiding the page title does not work with woocommerce pages.
October 30, 2015 at 10:19 am #148994Tom
Lead DeveloperLead DeveloperGP doesn’t have any control over WC titles like we do our own titles, but you can remove them with some CSS like this:
.product_title { display: none; }
Disable Elements/Sidebar Layouts won’t work on your blog index or main WooCommerce index because WP ignores metabox options for these pages.
This is why we have a Blog Layout option in the Customizer (Customize > Layout).
Let me know if you need more info π
October 31, 2015 at 4:01 am #149128Mathijs Kooij
Thank you, but that only hides the title of a product on that page. I made a child theme and put the css there. The hiding of the product title works, but that is not what I need.
I tried (al optins also with the !important behind it):
.page_title {
display: none;
}Also
.woocommerce. .page_title {
display: none;
}.woocommerce-page .page_title {
display: none !important;
}But all not working.
October 31, 2015 at 4:11 am #149130Mathijs Kooij
I figured it out,I added this to the functions.php template:
add_filter(‘woocommerce_show_page_title’,false);
October 31, 2015 at 7:28 am #149151Mathijs Kooij
Of course in a child theme!
October 31, 2015 at 9:49 am #149178Tom
Lead DeveloperLead DeveloperNice solution! Thanks for sharing π
December 14, 2015 at 5:04 am #159934Tony Amsterdam
I have a similar problem, not with the page title but with the header. I want to show the header on the blog but hide it on the woocommerce pages. I need some filter for my child theme functions.php but my knowledge of PHP is very limited unfortunately. Any help would be greatly appreciated!
December 14, 2015 at 10:12 am #159973Tom
Lead DeveloperLead DeveloperHi Tony,
The entire site header?
If so, you can hide it with this CSS:
.woocommerce .site-header { display: none; }
December 15, 2015 at 3:14 am #160135Tony
css doesn’t work; I already tried:
.archive .site-header {
display: none;
}
hiding elements also doesn’t work for the archive page. The only way to get rid of the header on the archive page is to hide it on the blog, but I want to keep it there.December 15, 2015 at 10:18 am #160197Tom
Lead DeveloperLead Developer.woocommerce .site-header { display: none; }
Doesn’t work?
And:
.archive .site-header { display: none; }
Doesn’t work for archives?
Can you link me to your site? Both of those should work just fine.
December 15, 2015 at 12:10 pm #160220Tony
Hi Tom.
Sorry to have bothered you because it works now!
Must have been my cache or the plugins I removed today.
Thanks for your work!Tony
December 15, 2015 at 12:54 pm #160222Tom
Lead DeveloperLead DeveloperGreat! Most likely the cache π
Glad I could help!
-
AuthorPosts
- You must be logged in to reply to this topic.