auto open first collapsible row

niceeee
Shopify Partner
285 4 21
Replies 5 (5)

Dan-From-Ryviu
Shopify Partner
7545 1454 1452

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! - Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- 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
7545 1454 1452

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! - Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- 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
7545 1454 1452

@howie2022 please share your store to check?

- Helpful? Like or Accept solution! - Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now