Nomis Posted March 27 Share Posted March 27 (edited) Hi, I would like all items in the accordion section to be open when the page is opened. However, they should be manually closable when on the page. Can someone help me with this? https://www.lebendige-gaerten-hh.de/ lebendigegaertenhh2023 Edited March 31 by Nomis Link to comment
tuanphan Posted April 1 Share Posted April 1 Hi, Which page you use Accordion? I don't see it on main page Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Nomis Posted April 2 Author Share Posted April 2 @tuanphan I've implemented it on this page > https://www.lebendige-gaerten-hh.de/ueber-uns Link to comment
tuanphan Posted April 5 Share Posted April 5 On 4/2/2024 at 5:22 PM, Nomis said: @tuanphan I've implemented it on this page > https://www.lebendige-gaerten-hh.de/ueber-uns I see first item is open. And now you want other items are same, open all? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Nomis Posted April 5 Author Share Posted April 5 @tuanphan Yes, exactly, I want all of them to be open simultaneously but also manually closable. Is that possible? Link to comment
tuanphan Posted April 7 Share Posted April 7 On 4/5/2024 at 3:49 PM, Nomis said: @tuanphan Yes, exactly, I want all of them to be open simultaneously but also manually closable. Is that possible? Use this code to Website > Website Tools > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> jQuery(document).ready(function($) { if ($(window).width() > 992) { $('.fe-block-5b8b9a8d9e014184ea1a li').attr('data-is-open','true'); $('.fe-block-5b8b9a8d9e014184ea1a .accordion-item__dropdown').addClass('accordion-item__dropdown--open'); } }); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment