InterMonkey
Member
Posted 10 months ago #
I got a request to add a "Close [X]" button to the slider.
Let's say I add this code in the content of the slider:
<a href="#" id="toggleSlider">Close [X]</a>
Is there a JQuery function call I can make that will close the slider (that is... without having to re-invent the wheel)?
http://wordpress.org/extend/plugins/tab-slide/
zoranc
Member
Plugin Author
Posted 9 months ago #
I've been playing around with this as well... it is definitely on my todo list for upcoming plugin updates... For now, you can go to my web site http://zoranc.co for a working solution...look at that tab-slide.js and tab-slide.css
the function you are looking for is called makeItSlide
check out the click events for #contactA and #tab_toggle - in short I edited it to toggle classes (.open_action and .close_action) that switch the background of tab_toggle, resize and move around the image.
All this will be made as an available Tab Slide Style in your option page in a future update
InterMonkey
Member
Posted 9 months ago #
Any way to do this without modifying the plugin's code? I don't want it to get overwritten if the client updates the plugin.
Thanks for your reply!
zoranc
Member
Plugin Author
Posted 9 months ago #
Perhaps using jQuery trigger would do the trick?
you can have this in a js file that is included via your theme's functions.php