Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

7.0 (Mercer) – Replacing tagline with image


dauray

Question

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

Edited by dauray
removed redundant URL
Link to comment

3 answers to this question

Recommended Posts

  • 0

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

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 0
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...

Edited by dauray
tagged responder
Link to comment
  • 0
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.

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi! I'm Paul, an independent Squarespace Consultant since 2007 and founder of SF Digital, building the features that Squarespace didn't include. Our mini-extensions allow you to pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect . Links in my posts may refer to SF Digital products or may be affiliate links.

Link to comment

Create an account or sign in to comment

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

×
×
  • Create New...