Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2539371
Change background of H1-H6 tags
Closed

Comments

  • shinomido started the conversation

    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 


  •  2,699
    PenciDesign replied

    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 replied

    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

  •  2,699
    PenciDesign replied

    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

    It works well!! Thank you so much!