HOW TO MAKE THE FULL VIEW BUY BUTTON FULL WIDTH ON PAGE SQUARESPACE?

visualess
Visitor
3 0 0

WEBPAGE: https://celery-polygon-kwcn.squarespace.com/seamoss-gel-200ml

 

Hi,

 

I'm trying to get the individual shopify product to be full width on the squarespace site. could anybody please help?

 

It currently looks like this:

Screenshot 2024-02-21 at 13.35.55.png

 

code:

<div id='product-component-1708477302575'></div>
<script type="text/javascript">
/*<![CDATA[*/
(function () {
var scriptURL = 'https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js';
if (window.ShopifyBuy) {
if (window.ShopifyBuy.UI) {
ShopifyBuyInit();
} else {
loadScript();
}
} else {
loadScript();
}
function loadScript() {
var script = document.createElement('script');
script.async = true;
script.src=scriptURL;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(script);
script.onload = ShopifyBuyInit;
}
function ShopifyBuyInit() {
var client = ShopifyBuy.buildClient({
domain: 'alkaline-your-lifestyle.myshopify.com',
storefrontAccessToken: '6b8b7e6a5e55245bd2cf20561ccaf6a4',
});
ShopifyBuy.UI.onReady(client).then(function (ui) {
ui.createComponent('product', {
id: '7245739983025',
node: document.getElementById('product-component-1708477302575'),
moneyFormat: '%C2%A3%7B%7Bamount%7D%7D',
options: {
"product": {
"styles": {
"product": {
"@media (min-width: 601px)": {
"max-width": "100%",
"margin-left": "0",
"margin-bottom": "0px"
},
"text-align": "left"
},
"title": {
"font-family": "Candara, sans-serif",
"font-weight": "normal",
"font-size": "26px",
"color": "#000000"
},
"button": {
"font-family": "Candara, sans-serif",
"color": "#000000",
":hover": {
"color": "#000000",
"background-color": "#e3da68"
},
"background-color": "#fcf274",
":focus": {
"background-color": "#e3da68"
},
"border-radius": "40px",
"padding-left": "45px",
"padding-right": "45px"
},
"price": {
"font-family": "Candara, sans-serif",
"font-size": "18px",
"color": "#000000"
},
"compareAt": {
"font-family": "Candara, sans-serif",
"font-size": "15.299999999999999px",
"color": "#000000"
},
"unitPrice": {
"font-family": "Candara, sans-serif",
"font-size": "15.299999999999999px",
"color": "#000000"
},
"description": {
"font-family": "Candara, sans-serif",
"color": "#000000"
}
},
"layout": "horizontal",
"contents": {
"img": true,
"imgWithCarousel": false,
"description": true
},
"width": "100%",
"text": {
"button": "ADD TO CART"
}
},
"productSet": {
"styles": {
"products": {
"@media (min-width: 801px)": {
"margin-left": "20px"
}
}
}
},
"modalProduct": {
"contents": {
"img": true,
"imgWithCarousel": false,
"button": false,
"buttonWithQuantity": false
},
"styles": {
"product": {
"@media (min-width: 601px)": {
"max-width": "100%",
"margin-left": "0px",
"margin-bottom": "0px"
}
},
"button": {
"font-family": "Candara, sans-serif",
"color": "#000000",
":hover": {
"color": "#000000",
"background-color": "#e3da68"
},
"background-color": "#fcf274",
":focus": {
"background-color": "#e3da68"
},
"border-radius": "40px",
"padding-left": "45px",
"padding-right": "45px"
},
"title": {
"font-family": "Helvetica Neue, sans-serif",
"font-weight": "bold",
"font-size": "26px",
"color": "#4c4c4c"
},
"price": {
"font-family": "Helvetica Neue, sans-serif",
"font-weight": "normal",
"font-size": "18px",
"color": "#4c4c4c"
},
"compareAt": {
"font-family": "Helvetica Neue, sans-serif",
"font-weight": "normal",
"font-size": "15.299999999999999px",
"color": "#4c4c4c"
},
"unitPrice": {
"font-family": "Helvetica Neue, sans-serif",
"font-weight": "normal",
"font-size": "15.299999999999999px",
"color": "#4c4c4c"
},
"description": {
"font-family": "Helvetica Neue, sans-serif",
"font-weight": "normal",
"font-size": "14px",
"color": "#4c4c4c"
}
},
"option": {},
"cart": {
"styles": {
"button": {
"font-family": "Candara, sans-serif",
"color": "#000000",
":hover": {
"color": "#000000",
"background-color": "#e3da68"
},
"background-color": "#fcf274",
":focus": {
"background-color": "#e3da68"
},
"border-radius": "40px"
},
"title": {
"color": "#000000"
},
"header": {
"color": "#000000"
},
"lineItems": {
"color": "#000000"
},
"subtotalText": {
"color": "#000000"
},
"subtotal": {
"color": "#000000"
},
"notice": {
"color": "#000000"
},
"currency": {
"color": "#000000"
},
"close": {
"color": "#000000",
":hover": {
"color": "#000000"
}
},
"empty": {
"color": "#000000"
},
"noteDescription": {
"color": "#000000"
},
"discountText": {
"color": "#000000"
},
"discountIcon": {
"fill": "#000000"
},
"discountAmount": {
"color": "#000000"
}
},
"text": {
"total": "Subtotal",
"button": "Checkout"
}
},
"toggle": {
"styles": {
"toggle": {
"font-family": "Candara, sans-serif",
"background-color": "#fcf274",
":hover": {
"background-color": "#e3da68"
},
":focus": {
"background-color": "#e3da68"
}
},
"count": {
"color": "#000000",
":hover": {
"color": "#000000"
}
},
"iconPath": {
"fill": "#000000"
}
}
},
"lineItem": {
"styles": {
"variantTitle": {
"color": "#000000"
},
"title": {
"color": "#000000"
},
"price": {
"color": "#000000"
},
"fullPrice": {
"color": "#000000"
},
"discount": {
"color": "#000000"
},
"discountIcon": {
"fill": "#000000"
},
"quantity": {
"color": "#000000"
},
"quantityIncrement": {
"color": "#000000",
"border-color": "#000000"
},
"quantityDecrement": {
"color": "#000000",
"border-color": "#000000"
},
"quantityInput": {
"color": "#000000",
"border-color": "#000000"
}
},
"text": {
"button": "ADD TO CART"
}
}
}
},
});
});
}
})();
/*]]>*/
</script>

Replies 4 (4)

PaulMartin
Shopify Partner
193 34 61

Squarespace? How did you get the products into your Squarespace site?

visualess
Visitor
3 0 0

Buy Button Addon

PaulMartin
Shopify Partner
193 34 61

Oh the Addon. For your problem, can't you add CSS to it?

visualess
Visitor
3 0 0

I can't figure out what the CSS coding would be from the code above ^ to make the width bigger