Jump to content

7.0 (Mercer) – Replacing tagline with image

Recommended Posts

Site URL: https://manley.com

When I initially built this site in 2017, I was able to drop some standard <img src> code here:

Design > Logo & Title > Tag Line

...and it would display a linked USA flag image in the header where the tagline would have been (to the left of the social links). See attached for an older image of the homepage.

Recently, I noticed the flag image has disappeared, so apparently the <img src> code is no longer working, though the linked image is still hosted on the site: https://mlabs2017.squarespace.com/s/made-in-the-usa-w200px.gif 

Any advice on how to replace the tagline with an image, or add CSS to make a code block appear in that part of the header? Or how to otherwise force the image to appear in that spot?

manley-before-after2.jpg

Link to comment
  • Replies 3
  • Views 439
  • Created
  • Last Reply
  • 2 weeks later...
On 9/4/2021 at 5:54 PM, tuanphan said:

Hi,

Can you add img tag again? We will check to see why it doesnt work?

If you don't want this, which plan do you use? We will use JS code to add image in that position

@tuanphan The img tag is still in the same place as it was – right in the Design > Logo & Title > Tag Line section:

<img src="https://mlabs2017.squarespace.com/s/made-in-the-usa-w200px.gif" alt="Made in the USA" width="24" style="float: right; padding: 0px 0px 0px 0px; width:47px;height:45px;">

The site is on 7.0 with the Business plan. Using JS code would be fine by me if necessary, but I'm curious as to why the previous (simple) solution used to work and no longer does...

Link to comment
On 9/1/2021 at 6:23 PM, dauray said:

When I initially built this site in 2017, I was able to drop some standard <img src> code here:

Design > Logo & Title > Tag Line

...and it would display a linked USA flag image in the header. Recently, I noticed the flag image has disappeared. I'm curious as to why the previous (simple) solution used to work and no longer does.

Your previous approach is longer supported because Squarespace tightened up their security to filter out code from various locations, including the tagline. As your code is removed before the page is rendered, it no longer appears on the page.

As an alternative, you can either:

  • insert your HTML using Code Injection (Settings > Advanced > Code Injection) and modify the styling to position it absolutely where you want it to appear, or
  • insert it into the correct position in the DOM using some JS.

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.