I’d like to enclose the Portfolio search (category) tags in a toggle as there may be as many as 30 tags, so it will keep the look tidy. I’ve tried adding do_shortcode to the loop-portfolio.php, but cannot get it to work.
If I do this, will the search tags still work when the toggle is opened?
You’ll need to use the raw html and not do_shortcode to wrap that content within a toggle. I really can’t say one way or another if they will work but they should in theory.
I’ve been working on this most of the day!
One thing I’ve discovered is that the theme uses jquery 1.8.3 which doesn’t support the toggle method. Once I figured that out, I tried the old method:
I added a button to the Frontpage using a “Text area” element:
In header.php I added:
The button appears as expected, but nothing happens when clicked.
I reproduced this is jsfiddle and it works perfectly. What am I doing wrong?
Add your script to the avia.js after :
Replace the $ with jquery just to be sure as well. See http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_Wrappers for reference on the why/what.
The topic ‘Enclose search tags in a toggle’ is closed to new replies.