Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #816360

    hi
    i am using the h2 code for the headings of my home page but my seo standards program doesnt like that i have used the h2 tag too often.
    i think i need to create a new class with the same settings as my existing h2 but i cannot find them to copy
    if there is another way of doing it please advise the site is https://canonwindows.co.uk

    thanks in advance

    #816367

    Hey PhatJ,

    You can wrap your content inside a span tag with a custom class as following

    
    <span class="custom-h2">Here goes my text</span>
    

    then you can add following code to Quick CSS in Enfold theme options under General Styling tab to style it as H2

    .custom-h2 {
        font-size: 28px;
        line-height: 1.1em;
        margin-bottom: 10px;
        font-weight: 600;
        color: white;
    }

    Best regards,
    Yigit

    #816462

    Thank you very much for a speedy response and solution.

    #816463

    for some reason it is making the text blue and the background white – any ideas why?

    #816497

    Hi,

    Should it be reversed so it has white text and a blue background?

    Best regards,
    Jordan Shannon

    #816515

    yes – i have reverted the first header

    #816521

    Hi,

    Add the following to quick css:

    
    .custom-h2 strong {
        color: white!important;
        background:#3a5a97!important;
        padding:10px!important; 
    }

    Best regards,
    Jordan Shannon

    #816523

    excellent thank you almost there
    just need to make the background stretch to the same width

    #816527

    Hi,

    If it needs to be like that make the following adjustments to what I just sent you.

    .custom-h2 strong {
        color: white!important;
        padding:10px!important; 
    }

    And add this as well:

    .av_textblock_section .avia_textblock .av_textblock_section {
    background:#3a5a97 !important;
    padding:12px!important;
    }

    Best regards,
    Jordan Shannon

    #816535

    nice one Jordan – thanks for your help – drop me your email, i might be able to throw a bit of paid work your way

    #816539

    Hi,

    I am glad we were able to get this worked out. If you need additional help, please us know here in the forums. Additional requested info is in the private area.

    Best regards,
    Jordan Shannon

    #816540

    Hi,

    Best regards,
    Jordan Shannon

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘help finding h2 css code’ is closed to new replies.