[Resolved] Change footer H2/H4 to custom CSS heading w/ same setting as H2/H4

Home Forums Support [Resolved] Change footer H2/H4 to custom CSS heading w/ same setting as H2/H4

Home Forums Support Change footer H2/H4 to custom CSS heading w/ same setting as H2/H4

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

    Dear all,

    Currently, I have changed the standard H2 setting for footer widgets from H2 to H4 according to another thread’s advise due to SEO reasons.
    However, I want to totally get rid of HTML headings in the footer and still keep same style as in H2/H4 widget headings.
    Is there a possible way to reflect this? I was not able to find a way myself.

    Many thanks in advance.

    #1984990
    David
    Staff
    Customer Support

    Hi there,

    you would need to use CSS to do that.
    First change the Title HTML to something like:

    Before title: <div class="h2">
    After title: </div>

    Then you can add CSS like:

    .h2 {
         font-size: 24px;
         font-family: 'Your H2 font';
    }

    Or personally i would ignore the SEO experts who say a H2 is not correct for a widget title.
    See my feedback here on the correctness of H2 titles:

    https://generatepress.com/forums/topic/h2-tag-and-widgets/#post-1895755

    #1986578
    finanzbeben

    Hi David, Thanks for your answer. I consider to follow your argumentation with regard to the SEO expert. Many thanks and kind regards.

    #1986586
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.