Accordion & tabs are designed entirely with jQuery.Horizontal / Vertical tabs to the accordion.The plugin adapts the screen size and meanwhile, changes its action accordingly. Responsive tabs to accordion – it is a delicate jQuery accordion plugin that optimizes normal vertical and horizontal tabs on multi devices such as – web, tablets, Mobile (IPad & iPhone.
#JQUERY ACCORDION FREE#
Here is the list of some FREE and Paid Accordion plugins for your website:. So, if you are searching for Accordion widgets or plugins then have a look below. At the time when these panels are clicked, then they get compress or stretch like their namesake, revealing more or less information associated with that visible caption. This is to prevent compatibility problems with other JavaScript libraries that WordPress can link to.“Accordions are useful when you want to toggle between hiding and showing a large amount of content”Īccordions take their name from a musical instrument, as they contain vertically or horizontally stacked panels with just their captions visible. The jQuery library included with WordPress is set to the noConflict() mode.
#JQUERY ACCORDION CODE#
Step 2: Add the jQuery UI accordion code Vestibulum ante ipsum primis inįaucibus orci luctus et ultrices posuere cubilia Curae Aenean lacinia
Pellentesque habitant morbi tristique senectus et netusĮt malesuada fames ac turpis egestas. Lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.Ĭras dictum. Phasellus ac liberoĪc tellus pellentesque semper. Nam enim risus, molestie et, porta ac, aliquam ac, risus. Velit, faucibus interdum tellus libero ac justo. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor Vestibulum a velit eu ante scelerisque vulputate. Vivamus nisi metus, molestie vel, gravida in, condimentum sitĪmet, nunc. Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. The way that this jQuery UI accordion works is that the text inside the h3 header (i.e Section 1) becomes the title and the text inside the adjacent becomes the content of the each individual accordion section.Ĭopy and paste this code into your page/post.
For this example I copied the HTML code from the jQuery UI website. Be sure to add the HTML markup in the text editor (text tab) and not your visual editor. The first thing that we need to do is to add the HTML markup to our page or post. This is the method I will teach you today. But when adding jQuery to WordPress it is best to follow the method outlined in the WordPress Codex under Function Reference/wp enqueue script . In this tutorial I will teach you how to add a jQuery UI accordion to WordPress.
#JQUERY ACCORDION HOW TO#
How to add jQuery UI Accordion to WordPress