WordPress.org

Ready to get started?Download WordPress

Forums

TAB SLIDE
[resolved] Activate slider from a separate button (4 posts)

  1. InterMonkey
    Member
    Posted 2 years 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/

  2. zoranc
    Member
    Plugin Author

    Posted 1 year 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

  3. InterMonkey
    Member
    Posted 1 year 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!

  4. zoranc
    Member
    Plugin Author

    Posted 1 year 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags