If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
February 18, 2013 at 8:50 am #20460
I’d love to be able to put a named anchor within a toggle so that when a link to this anchor is followed the visitor ends up on the right page, with the right toggle opened.
Possible? Or is there a better way – perhaps I can specify a toggle in the URL?
MattFebruary 18, 2013 at 1:21 pm #107711February 18, 2013 at 3:40 pm #107712
I’ve just installed Kavin Gray’s excellent WP UI plugin (http://wordpress.org/extend/plugins/wp-ui/), which does the job… almost. I think there is a minor jquery conflict somewhere. URLS with a #named_anchor appended DO take you to the right toggle (or accordion as this plugin calls them), and opens it too, but not when you click through from a different page – only if you tap it into the address bar. Also it stops my favicon displaying on the destination page, oddly, unless it goes straight into the address bar, in which case all is as you would expect.
Would be interested to hear if it works for you.
MattFebruary 18, 2013 at 6:00 pm #107713
I’d rather use the built in toggler personally, I don’t want to install extra plugins with extra JS if I don’t have to.February 18, 2013 at 6:20 pm #107714
Me too! Looks like WP UI 0.8.5 is broken on WordPress 3.5.x in any case. Back to the drawing board…February 19, 2013 at 6:12 am #107715
This is not possible at the moment but Kriesi is aware of the feature request: http://www.kriesi.at/support/topic/target-toggle-menu
PeterFebruary 19, 2013 at 8:20 am #107716
Thanks, Peter, it’s very good to know Kriesi’s on the case! In the meantime, thanks for the link to the other thread and thence to the Collapse-o-matic plugin. I’m using it now and it’s better than WP UI, but still not quite right in this theme (won’t expand the relevant tab).
Like halasyt said, it would be much better not to rely on extra plugins and jquery. Looking forward to the next theme update… fingers crossed!
MattFebruary 19, 2013 at 10:24 am #107717
Collapse-o-matic was working all along – it was my links that were at fault. Another reminder to put your HTML in WordPress’s text, not visual editor! The visual editor had added the attribute “title” to the links, and removing this allowed the toggles to open properly. Probably it was the same problem I was having with WP UI.February 19, 2013 at 11:15 am #107718
The topic ‘Anchors in toggles’ is closed to new replies.