oliviapaulson 0 Posted October 23 Hi, I'm trying to style a product block on one of my pages and currently have just the "add to cart" feature being displayed, but the button is very small and I'd like to make it bigger. Does anyone know how to add padding/make font bigger on the buttons (that are technically part of a product item) The link to my site is fpg.com/masterclass if anyone needs that. Share this post Link to post
paul2009 28,463 Posted October 23 If you want to make all the Product Block buttons larger, you can use something like this in Custom CSS, changing the values to suit your needs: .product-block .sqs-add-to-cart-button { padding: 2em 3.5em!important; } Note also that you have errors in your header injection. The first of which is a missing </script> tag. 1 MikeyD reacted to this If a response has helped you, please give thanks using the button.Need personalised help? I'm a professional Developer who works with Designers internationally. You can book me via my company's website. www.sf.digital Share this post Link to post
oliviapaulson 0 Posted October 23 Thank you so much for the help with the styling, that worked perfectly. As for the missing </script> is that in the custom CSS panel or somewhere else? Share this post Link to post
tuanphan 6,118 Posted October 23 (edited) @oliviapaulson Home > Settings > Advanced > Code Injection > Header Your code <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-144028198-1'); <script> It should be <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-144028198-1'); </script> Edited October 23 by tuanphan Send me a message if you have any questions | View my service if you need more support View 4200+ Custom Code for Squarespace How to Setup Password & Share Site URL How to find Page ID, Block ID, Section ID Squarespace 7.1 CSS List Share this post Link to post
oliviapaulson 0 Posted October 23 Thank you- if anyone sees any other errors in my code, please let me know, most of what I've used is what i've found online and there may be things that could be done more efficiently/better and I'd have no idea. Share this post Link to post
paul2009 28,463 Posted October 23 4 hours ago, oliviapaulson said: most of what I've used is what i've found online and there may be things that could be done more efficiently/better and I'd have no idea. Olivia It concerns me that you may be using code you don't understand. If that's the case, please consider getting help from an expert who you can trust, rather than from forums like this. Adding JavaScript (anything with a <script> tag in it) can expose your website to security and performance risks, including malicious code and surreptitious tracking. In summary, if you don't understand the code, please don't use it. There’s no guarantee that a script is doing what you think it is. 2 brandon and tuanphan reacted to this If a response has helped you, please give thanks using the button.Need personalised help? I'm a professional Developer who works with Designers internationally. You can book me via my company's website. www.sf.digital Share this post Link to post