How can I change H1 tags to H2 in featured collections?

I want to change the H1 tags to H2, for some reason, the titles of featured collections are displayed as H1 tags and I’m not sure how to change it.

1 Like

if you change h1 to h2 from theme customization page it will reflect on all headings. You just need some custom css to change style of that h1

2 Likes

@mwangdawg
yea, right you have to change it by the custom code,
Kindly share your Store url, so that i can help you to fix it out,

Thank you

1 Like

Hi @Zworthkey My store is www.subtlekawaii.com

You should be able to see that the featured collection titles are h1 for some reason

1 Like

you want to make it big or small?

1 Like

Hi @Sajeel I want to change to h2 or lower, just not h1

Add this code at the end of theme.css or let me know if it didn’t worked for you

.featured-collection–container h1{font-size: 1rem;}

1 Like

Thank you, I will try that

sure

1 Like

I could only find a theme.scss.liquid file, I added your thing but it didn’t work, I probably put it in the wrong folder??

You are in the right file just try this one

.featured-collection–container h1{font-size: 1rem !important;}

1 Like

its working with me

1 Like

Hi, I dont think it worked, when I inspect the page source I still see the H1 tags

yes you will see h1 tag but you can change the size of your font using custom css which i shared with you if you want to make it more small reduce the value of font-size:0.9rem; like this

1 Like

Ahh ok, thank you very much

yes please mark my answer as accepted if it works for you

@mwangdawg
hahaha!
it will reduce your text font size, not the h1 to h2.

2 Likes

oh ok, so not the solution I am looking for then ahaha

yes he wants to reduce the size off heading but someone told him to change h1 to h2 to reduce size

ahh, no, i want to change from h1 to h2 for google SEO optimisation, since I have like 5 H1 tags, I want to get rid of them and add an actual H1 tag

2 Likes