Narrative Theme - Centralise and Widen the Add to Cart button

Hi there,

I’ve managed to readd the add to cart button to my website, however, it’s currently positioned to the left of the site, and it quite short. Is there a way to widen it, drop it down a few pixels and centralise it on the screen? Please see the screenshot for reference on it’s current position and where it needs to be.

Thanks!

https://www.exsim.co.uk/products/samsung-odyssey-g95t-49-curved-qled-gaming-monitor-ex-event-equipment

2 Likes

Hi @AlexMoutrie

Follow these Steps:

  1. Go to Online Store
  2. Edit Code
  3. Find theme.liquid file
  4. Add the following code in the file above tag

Hey @AlexMoutrie

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Hello @AlexMoutrie

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset > theme.scss.css and paste this at the bottom of the file:
.product__content-header form {
text-align: center;
margin-top: 10px;
}

Hi @AlexMoutrie

Try this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
#shopify-section-product-template-cart > div > div.product__content.page-width > div > div > div.product__content-header > form {
    text-align: center;
    margin-top: 15px;
}

input.btn {
    padding-left: 50px;
    padding-right: 50px;
}

Im not sure how wide you like it. You can adjust the left/right padding for the wide.

I hoe it help.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!