Taxonomy Terms Menu with Expand/Collapse Functionality

This members-only tutorial provides the steps to add custom PHP, JS and CSS code to output parent terms of a given taxonomy (like product_cat for example) and for each term, display a list of child terms if present with the list items’ text linking to the corresponding term archives in Oxygen.

Step 1

Add a Code Block.

(optional) If the Code Block is not present inside a Column having a fixed width, you may want set it a width of say, 300px or higher depending on the length of your taxonomy terms.

PHP & HTML:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $599 one-time).

Already a member? Log in below or here.


Posted

in

,

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *