Shopify themes, liquid, logos, and UX
good morning,
I would like some help to put the description section of my product page (the collapse description) below the photo images.
can you help me?
I use impact theme
Sincerely
Solved! Go to the solution
This is an accepted solution.
hi @slims1
Step 1. Go to Admin -> Online store -> Theme > Edit code
Step 2. Find the file theme.js. Add the following JavaScript code at the end of the file
(() => {
const loop = setInterval(() => {
if (document.querySelector(".product-info__block-item:has(.product-info__accordion)") && document.querySelector("scroll-shadow")) {
customJS();
clearInterval(loop);
}
}, 100);
setTimeout(() => {
clearInterval(loop);
}, 10000);
function customJS() {
const scrollShadow = document.querySelector("scroll-shadow");
const blockItem = document.querySelector(".product-info__block-item:has(.product-info__accordion)");
if (scrollShadow && blockItem) {
scrollShadow.insertAdjacentElement('afterend', blockItem);
}
}
})()
The result
If it helps you, please like and mark it as the solution.
Best Regards
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 is an accepted solution.
hi @slims1
Step 1. Go to Admin -> Online store -> Theme > Edit code
Step 2. Find the file theme.js. Add the following JavaScript code at the end of the file
(() => {
const loop = setInterval(() => {
if (document.querySelector(".product-info__block-item:has(.product-info__accordion)") && document.querySelector("scroll-shadow")) {
customJS();
clearInterval(loop);
}
}, 100);
setTimeout(() => {
clearInterval(loop);
}, 10000);
function customJS() {
const scrollShadow = document.querySelector("scroll-shadow");
const blockItem = document.querySelector(".product-info__block-item:has(.product-info__accordion)");
if (scrollShadow && blockItem) {
scrollShadow.insertAdjacentElement('afterend', blockItem);
}
}
})()
The result
If it helps you, please like and mark it as the solution.
Best Regards
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
YOU REALLY ARE THE BEST
😍 It's such my honor to help you, bro. If you like and mark solution, it will be the greatest motivation for us.
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
By 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, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024