auto open first collapsible row

niceeee
Shopify Partner
278 4 21
Replies 5 (5)

Dan-From-Ryviu
Shopify Partner
7011 1326 1352

Hi @niceeee 

You can do that by adding this code to your main-product.liquid after </section>

  <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
  <script>
    jQuery(document).ready(function($) { 
        $(".accordion").children(":first").attr('open','');
    });
  </script>

 

- Helpful? Like or Accept solution, - Coffee Tips or Paypal Tips
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 1 month of Shopify for $1. Sign up now

howie2022
New Member
4 0 0

Hi, sir. If for all collapsible row, how can i set?

Dan-From-Ryviu
Shopify Partner
7011 1326 1352

You can try to use this code 

 <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
  <script>
    jQuery(document).ready(function($) { 
        $(".accordion").attr('open','');
    });
  </script>

 

- Helpful? Like or Accept solution, - Coffee Tips or Paypal Tips
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 1 month of Shopify for $1. Sign up now

howie2022
New Member
4 0 0

Thank you for your reply. But it seems no work.

Dan-From-Ryviu
Shopify Partner
7011 1326 1352

@howie2022 please share your store to check?

- Helpful? Like or Accept solution, - Coffee Tips or Paypal Tips
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 1 month of Shopify for $1. Sign up now