Site logo

Archived topic

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

3 replies · Started by finanzbeben on October 31, 2021

Viewing posts 1–4 of 4

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.

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

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

Glad to be of help!

This archived topic is closed to new replies.