dauray Posted September 1, 2021 Share Posted September 1, 2021 (edited) 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? Edited September 1, 2021 by dauray removed redundant URL Link to comment
tuanphan Posted September 5, 2021 Share Posted September 5, 2021 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. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
dauray Posted September 13, 2021 Author Share Posted September 13, 2021 (edited) 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 September 13, 2021 by dauray tagged responder Link to comment
paul2009 Posted September 14, 2021 Share Posted September 14, 2021 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. tuanphan and dauray 2 About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links. Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment