Product page text alignment

Product page text alignment

Alurithardd
Excursionist
33 0 9

How can I align my product description to cover full page width instead of being full right 

Alurithardd_0-1727274622595.png

 my website- https://aulrit.com/

 

Replies 3 (3)

BSSCommerce-B2B
Shopify Partner
1972 564 566

@Alurithardd,

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Add this code before </body> tag:

 

<script>
document.addEventListener("DOMContentLoaded", function() {
  const productInfoWrapper = document.querySelector('.product__info-wrapper');
  const productDescription = document.querySelector('.product__description');

  if (productInfoWrapper && productDescription) {
    productDescription.style.marginTop = '20px'
    productInfoWrapper.insertAdjacentElement('afterend', productDescription);
  }
});
</script>

 

Result:

BSSCommerceB2B_1-1727277160512.png

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

BSSCommerce-HDL
Shopify Partner
2305 835 907

Hi @Alurithardd

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Add this code before </body> tag:

 

<script>
let prd_desc = document.querySelector('.product .product__description');
let prd = document.querySelector('.product');

if(prd && prd_desc) {
  prd.insertAdjacentElement('beforeend', prd_desc);
}
</script>

 

Here is result: 

BSSCommerceHDL_0-1727275948263.png

 

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Made4uo-Ribe
Shopify Partner
10036 2385 3012

Hi @Alurithardd 

You can follow this steps. 

Product description filling only half the page on desktop view. (Mobile view looks fine) 

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.