Shopify themes, liquid, logos, and UX
Hello,
On bigger screens the product description is under the image slider like this:
But on mobile I don't want the product desctiption directly under the images becuse it looks like this:
And then the buy button and that comes after which i want above the description.
Here's my store: https://r1vex.myshopify.com/
Thanks for helping!
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>
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
@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:
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
This code did unfortunately not work?
Hi @manbru , kindly try my code please.
Thanks, but I just fixed it!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024