Jump to content

Store H1 Tag Using Code Injector

Recommended Posts

Posted

Site URL: https://www.martiancreations.com/handmade-jewelry-shop

Had a Semrush audit done and found no H1 tags on my stores. On Squarespace version 7.1 theme. Using the code injector, I manually put in... 

<h1>

TEXT

</h1>

Worked, but this created a huge gap between my the site header and the content. After inspecting the page code, it seems that code injector puts the H1 or any other code right on the page but hides it through theme styling. (see image - made text red to find it)

This code styling worked for me:

<h1 style="
           font-size: 1px;
           margin-block-end: 0px;
           margin-bottom: 0px;
           margin-block-start: 0px;
           margin-top: 0px;
           ">
  TEXT GOES HERE.
</h1>

Ran a quick h1 tag test and it came up and styling is back to normal. Hope this helps some out there!

This is a test.jpeg

  • Replies 0
  • Views 549
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.