Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Grid 2.0 - Change footer titles from H2 to span

Grid 2.0 - Change footer titles from H2 to span

SeleneProvence
Tourist
6 0 2

Hi guys,

 

I would like to change my titles in the footer from H2 to span for SEO reasons.

 

I have found the code in the footer.liquid section, I assume this is the right place to modify the code.

 

I have then changed <H2> to <span>, this works but doesn't look nice. What kind of code should I add if I want to change the color and the size of the titles converted to span? Should I use a special class for this ? Should I need to modify any other sections ?

 

Thanks a lot for your help !

 

Sarah

Reply 1 (1)

EcomGraduates
Shopify Partner
862 71 126

Here's an example

<span class="footer-title">Title Text Here</span>

 

Then, in your theme's CSS file, you can add styles for this class. For example, to change the color to red and the font size to 16px, you can add the following code:

 

.footer-title {
  color: red;
  font-size: 16px;
}

 

Make sure to modify the class name and the styles to match your desired design.

 Like + accept if this helped |
 Theme: EcomifyTheme |
️ Get An Audit: Here