Skip to content
Public Ticket #14144

Change background of H1-H6 tags

Conversation thread

shinomido replied

Customer Reply

It works well!! Thank you so much!

PenciDesign replied

Staff Reply

Hi,

You can replace the code I sent to this code to do that:

.post-entry h1, .post-entry h2,
.post-entry h3, .post-entry h4,
.post-entry h5, .post-entry h6{ background: #20bec2; padding: 5px 10px 5px 15px; }
.post-entry .penci-recipe-heading h2, .post-entry h3.penci-recipe-title{ background: none; padding: 0; }

Best Regards,

PenciDesign

shinomido replied

Customer Reply

Hi,

Thank you!! 

It worked well, but when I customize H2, recipe title is also changed as attached (image.jpg). 

Is it possible not to affect recipe title? 

Best regards,

Midori

PenciDesign replied

Staff Reply

Hi,

You can do that by use the custom css code like this:

.post-entry h1, .post-entry h2,
.post-entry h3, .post-entry h4,
.post-entry h5, .post-entry h6{ background: #20bec2; padding: 5px 10px 5px 15px; }

Best Regards,

PenciDesign

shinomido started the conversation

Conversation Start

Hi,

I'd like to customize the background color for tags (H1,H2,H3,H4,H5,H6 ) on single posts. 

When I customized CSS, other tags on homepage or pages were also changed, which I don't want to be changed.

Can I change them on only single posts without affecting other pages?

Best regards,

Midori 

Want to join this conversation or access attachments? Sign in first.