Rodney1234 Posted April 24 Share Posted April 24 Hello. For some reason I am seeing hidden code when visiting my site on my mobile. It's happening in two places; home and on product page (see pics). Does anyone know how to get rid of this? Thank you! Link to comment
Ziggy Posted April 24 Share Posted April 24 It looks like you have style code in the header code injection (either global or page) that doesn't have <style></style> tags around it so it is being rendered as text. Rodney1234 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Rodney1234 Posted April 24 Author Share Posted April 24 Hi, this is the code that I have on the home page: .sqs-block-button-element-medium { border-width: 10px !important; } .product-quantity-input { display: none !important; } .product-quantity-input { display: none !important; } .sqs-block-button-element-medium { border-width: 10px !important; } .sqs-add-to-cart-button-wrapper, .product-quantity-input { display:none; visibility:hidden; } Ziggy 1 Link to comment
Solution Ziggy Posted April 24 Solution Share Posted April 24 1 hour ago, Rodney1234 said: Hi, this is the code that I have on the home page: If you want to place this in Header Code Injection, it would need to be presented like this: <style> .sqs-block-button-element-medium { border-width: 10px !important; } .product-quantity-input { display: none !important; } .product-quantity-input { display: none !important; } .sqs-block-button-element-medium { border-width: 10px !important; } .sqs-add-to-cart-button-wrapper, .product-quantity-input { display:none; visibility:hidden; } </style> Without the style tags, it gets rendered as plain text and will not have any effect on the page styling. Rodney1234 1 Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
Rodney1234 Posted April 24 Author Share Posted April 24 Thank you so much, Ziggy. Really appreciate the help. That fixed the issue. Thanks again! Ziggy 1 Link to comment
Ziggy Posted April 24 Share Posted April 24 Just now, Rodney1234 said: Thank you so much, Ziggy. Really appreciate the help. That fixed the issue. Thanks again! No problem! Please like and upvote if my comments were helpful to you. Cheers! Zygmunt Spray Squarespace Website Designer Contact me: https://squarefortytwo.com Hire me on Upwork! 🔌 Ghost Squarespace Plugins (Referral link) 📈 SEO Space (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲 SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️ Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? 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