Jump to content

Dynamic Header showing CSS code at top of header

Recommended Posts

I just changed my header type to dynamic and on my blog page, there is a line of code ".sqs-block-button .sqs-block-button-element-medium" etc. going across the top of my header. It does not go away if I remove all of the custom code from my site, and I don't have anything like that in my header injection code. It is not there when I am not using a dynamic header. Any advice on how to get rid of this?

website password is "hello!"

Edited by PresleyDale1
Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

12 hours ago, PresleyDale1 said:

I just changed my header type to dynamic and on my blog page, there is a line of code ".sqs-block-button .sqs-block-button-element-medium" etc. going across the top of my header. It does not go away if I remove all of the custom code from my site, and I don't have anything like that in my header injection code. It is not there when I am not using a dynamic header. Any advice on how to get rid of this?

website password is "hello!"

Can you share your page URL?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
  • 3 weeks later...

You have some CSS that is not wrapped in a style tag. It will look something like the following.

.sqs-block-button .sqs-block-button-element--medium {width: 350px !important;}

.sqs-block-button .sqs-block-button-element--medium {padding: 10px 25px !i}

Also note the code I could see has syntax errors.

Look for the CSS displayed at the top of the page in the following locations.

Settings > Advanced > Code Injection > HEADER.

Blog Settings > Advanced > Page Header Code Injection for the blog page. Please see per-page code injection.

Blog Settings > Advanced > Post Blog Item Code Injection for the blog page. Please see per-page code injection.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

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

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.