Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #719569

    Hello,

    On certain blog posts, I would like to be able to choose specific headings and bits of text to highlight with a custom background color. Can you please tell me the easiest way to achieve this since I will be using this very often if it is possible.

    Thank you!

    #719616

    Hey EricMarks,

    I’m not sure if I get it correctly, the specific headings you mention, is it the post title for example “Kai Wong Says Goodbye To DigitalRev TV”, if yes, please try adding this code to Quick CSS (located in Enfold > General Styling):

    #top .post-entry-2993 h2.post-title.entry-title a {
        background: yellow;
    }

    Just adjust the background color, and also replace this part .post-entry-2993, that 2993 should be change by the right post id, you can check how you can find the post id here: https://www.youtube.com/watch?v=fLg2T1AvmFE

    This is only for background color but that should apply to the whole text, unfortunately it’s not possibly for highlighting only bits of code.

    Best regards,
    Nikko

    #719903

    Hi Nikko,

    Sorry if I did not explaining it correctly. I would like to know how to highlight specific headings that I want. Not the headings of the blog, but headings within a blog post. Here is an example blog post on another website. Look in the provate content area

    #719922

    Hey!

    Thanks for elaborating it, you need to write a bit of html in a text block (make sure you use the Text not the Visual), then add something like this:
    <h4 class="customized-heading">The Heading</h4>
    Just replace The Heading with any text/content. Then on Quick CSS (located in Enfold > Styling) add this code:

    .customized-heading {
        background: black !important;
        color: white !important;
        display: block;
        font-size: 24px;
        padding: 5px 20px;
        box-sizing: border-box;
    }

    Just change the background, color, font-size and paddings as you see fit. Hope this helps :)

    Regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.