Remove/Hide “Title” from landing page
-
In Storefront/Customize/Additional CSS:
I’ve tried removing the word “title” with these but they don’t work:
(1) .entry-title {display: none;
}
DOES NOT WORK(2) .woocommerce-products-header {
display: none;
}
THIS ONE REMOVES ALL THE CONTENT I HAVE ADDED BEFORE THE PRODUCTS.Any other ideas? Thank you!
The page I need help with: [log in to see the link]
-
Hi @ninadovetail,
Looking at your site I think you’re wanting to remove this title, correct?
Link to image: https://cld.wthms.co/ELwC5pIf so, you’d want to add the following to your Additional CSS section in the customizer. This will remove that page title just from your home page.
.home h1.woocommerce-products-header__title.page-title { display: none; }
Link to image: https://cld.wthms.co/DW2zTVMillions of thanks, @ryanr14!
Perhaps you can help with another one — I am also trying to eliminate the copyright (footer) in the bottom of the same page, where it says “Β© Dovetail Learning Store 2019” including the faint horizontal line above it. But also perhaps have that faint horizontal line before the footer widgets I added (the green circle, etc).
Thanks again!
Hi @ninadovetail,
I see in your other thread you’d asked about the footer and horizontal line. Just noting I’ve seen that and will answer here. π
https://wordpress.org/support/topic/horizontal-line-between-categories/
In that thread you said you figured out the horizontal line, so let’s tackle removing the footer copyright text. Simple enough with CSS you can add the following to hide it.
.site-info a { display: none; }If you have a custom child theme, or another plugin / any way to add PHP snippets to your site the more “correct” way would be to remove the action that adds that in the first place rather than simply hide it with CSS.
add_action( 'init', 'custom_remove_footer_credit', 10 ); function custom_remove_footer_credit () { remove_action( 'storefront_footer', 'storefront_credit', 20 ); }@ryanr14 the additional CSS did not remove the copyright line. I don’t believe there are any custom child themes. Any other ideas for additional CSS?
Re horizontal line — that was actually a two-part question. I was able to remove the line above the copyright and add above the footer widget. I am also asked to put them between category sections — but it looks like I really ought to update to be able to drag-drop. Still trying to figure things out so THANK YOU!
Hi @ninadovetail,
So sorry, it had a minor typo in it. Try this to hide the copyright.
.site-info { display: none; }For the category sections, to confirm for me again, you want a horizontal line between each row? Something like this?
Link to image: https://cld.wthms.co/cb1F5DAwesome — the revised code worked, thank you!
Re horizontal lines — yes, exactly, between sections of categories. Additionally can I name the sections?
As an example, it would look like this:
GROUP A
cat1 cat2 cat3 cat4
——-horizontal line——-
GROUP B
cat1 cat4 cat5 cat6
——-horizontal line——-
GROUP C
cat3 cat4 cat7 cat 8Something like that…
Thanks again for your help!
Hi @ninadovetail,
Ok got it, glad I understand now. In this case I think I would look at using the new editor and create a new home page. It currently looks like that http://store.dovetaillearning.org is both the home page and the default shop page setup in WooCommerce. It also looks like it is set to just show your categories.
I would create a new home page and use blocks there to rebuild it. That lets you easily enter a paragraph block like you have now in your shop page, then you can add a heading block, a category block, then a separator block. It could look something like this…
Link to image: https://cld.wthms.co/ulnUB6On the backend this is what I’ve done. I’ve added paragraph blocks, then the heading block and centered it. Then comes the shortcode block to enter your categories of choice. I used the following format.
[product_categories ids="16,17,18,19" columns="4"]It is getting the specific categories by their ID number, which you can find by going to WooCommerce > Categories and then hover over any category. I think in most browsers you’ll see this URL preview somewhere. But if not you can just edit the category and in your address bar you’ll find the ID.
Link to image: https://cld.wthms.co/JK0lI7&
Link to image: https://cld.wthms.co/4ZWHe3FINALLY, I follow that all up with the separator block.Hopefully that helps, makes sense, and is one option you can use. π
The topic ‘Remove/Hide “Title” from landing page’ is closed to new replies.
