A space to discuss online store customization, theme development, and Liquid templating.
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
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
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.