description section theme impact

Solved

description section theme impact

slims1
Tourist
6 0 2

YYYYY.pnggood 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

Accepted Solution (1)

BSSCommerce-B2B
Shopify Partner
1503 430 486

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

BSSCommerceB2B_0-1723197967374.png

 

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

View solution in original post

Replies 3 (3)

BSSCommerce-B2B
Shopify Partner
1503 430 486

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

BSSCommerceB2B_0-1723197967374.png

 

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

slims1
Tourist
6 0 2

YOU REALLY ARE THE BEST

BSSCommerce-B2B
Shopify Partner
1503 430 486

😍 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