Accordion state First opened not working
-
Basically what the tittle says. I’m using accordion for the tabs, and on “Accordion state” I have selected “First opened”. However, the tab doesn’t stay opened. See image attached and link.
Thx
Attachments:
You must be
logged in to view attached files.
Hello,
Is there any chance that you could give me access to the dashboard area so I can check the settings there?
Thank you in advance.
Kind Regards
Hello,
I apologize for the delay.
May I disable 3rd party plugins and enable the parent theme for testing?
I await your response.
Kind Regards
Hi,
Apologies for the delay.
Yes, you may disable 3rd party plugins for testing.
Hello,
This https://prnt.sc/6AkvRAtc_jfL plugin causes that issue.
Disable it, clear the cache and recheck the issue.
Kind Regards
Hi,
That’s correct.
Is there a way to overwrite the code from this plugin so that it prioritises the open tab code?
Thanks!
Hello,
Sorry, but editing code from the 3rd party plugin is beyond our limitations and support policy scope. Hope you can understand our limitations.
I suggest you contact the plugin’s support team for further solutions.
Kind Regards
I mean add extra code for the theme.
Add some css (!important) code or js code to make the open tab code priority.
Basically make class wd-accordion-title tab-title-description wd-active always wd-active.
I found a solution. By adding a script to function.php that changes:
element.className = "entry-content woocommerce-Tabs-panel woocommerce-Tabs-panel--description wd-scroll wd-accordion-content wd-active";
element.style.display = "block";
1 sec after the page load.
This works.
Hello,
Glad that you found a solution.
Always remember that you can reach out to us with any questions you may have.
Have a good day!
Kind Regards
The topic ‘Accordion state First opened not working’ is closed to new replies.