Featured pages on home : remove titles, buttons and text

⚠️ Code snippets might not be compatible with the latest version of your theme. Always use a child theme to customize your theme, and test your code on a staging website before migrating to production.

You might want to display only selected parts of the featured pages block. on your Customizr front page.

As of now (v3.0.14) you can choose to show/hide the picture in the customizr option panel but there are no customizations options for title, excerpt and buttons.

This snippet give you a way to control the display of these content with CSS. In the future, it could be added as an option in Customizr.

 

Where to copy/paste this code? The simpliest way is to use the Custom CSS section of the customizer option screen. If you have many customizations to make in CSS and PHP, then a strongly recommend to create a child theme. Everything you need to know about child theme with Customizr here.

 

Hide the featured pages title

.marketing h2 {
	display: none;
}

 

Hide the featured pages excerpt/featured text

.fp-text-one, .fp-text-two, .fp-text-three  {
	display: none;
}

 

Hide the featured pages button

.btn.btn-primary.fp-button {
	display: none;
}

 

Thats’it!

I hope this will help and look forward to reading your thoughts and/or your code if you find other ways to do that.

 

Leave a comment

Your email address will not be published. Required fields are marked *

58 thoughts on “Featured pages on home : remove titles, buttons and text”