Change order of section for mobile (Dawn)

Change order of section for mobile (Dawn)

manbru
Pathfinder
112 0 31

Hello,

 

On bigger screens the product description is under the image slider like this:

Skärmavbild 2024-09-12 kl. 09.59.56.png

 

But on mobile I don't want the product desctiption directly under the images becuse it looks like this:

Skärmavbild 2024-09-12 kl. 09.59.28.png

And then the buy button and that comes after which i want above the description.

Here's my store: https://r1vex.myshopify.com/ 

Skärmavbild 2024-09-12 kl. 09.59.43.png

Thanks for helping!

Replies 5 (5)

topnewyork
Globetrotter
633 114 134

Hi @manbru ,

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

 

 

<style>
@media (max-width: 768px) {
    .product__description.rte.quick-add-hidden {
        position: relative !important;
        top: 360px !important;
    }

    product-info {
        position: relative !important;
        bottom: 395px !important;  
    }
}
</style>

 

topnewyork_0-1726129007727.png

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!

Need a Shopify developer?
Hire us at Top New York Web Design
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel

BSSCommerce-B2B
Shopify Partner
1722 512 575

@manbru ,

Step 1. Go to Admin -> Online store -> Theme > Edit code

Step 2. Find the file theme.liquid.

Step 3. Add this code above </body>

<script>
document.addEventListener('DOMContentLoaded', function() {
  function moveDescription() {
    var description = document.querySelector('.product__description');
    var infoWrapper = document.querySelector('.product__info-wrapper product-info');

    if (window.innerWidth < 768) {
      if (description && infoWrapper) {
        infoWrapper.insertAdjacentElement('afterend', description);
      }
    }
  }
  moveDescription();
});
</script>

result:

BSSCommerceB2B_0-1726129111345.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

manbru
Pathfinder
112 0 31

This code did unfortunately not work?

topnewyork
Globetrotter
633 114 134

Hi @manbru , kindly try my code please.

Need a Shopify developer?
Hire us at Top New York Web Design
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel
manbru
Pathfinder
112 0 31

Thanks, but I just fixed it!