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

  1. InterMonkey
    Posted 4 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)?


  2. zoranc
    Plugin Author

    Posted 4 years 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
    Posted 4 years 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
    Plugin Author

    Posted 4 years 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

  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic