Autoclose sidebar if click something

Author
Topic
#5539

Hello,

how can i realize the sidebar with autoclose after click on something on it.

Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
Author
Replies
  • #5540

    Hi,

    There is no such option, because it is very complicated to do, considering that sidebar can contain anything. Capturing that click might not be possible in eveyr instance, and it can also interupt other stuff, and there is no real way to specify priority for these events handling function. Right now, I have no plans to do it.

    Regards,
    Milan

  • #5551

    ok normally you have a jquery for this: i have tried to use this but it is not working.

    <!– div class=”wcsearch-search-input” <?php // echo $search_model->getOptionsString();?>> –>

    <input type=”submit” name=”search1″ class=”wcsearch-search-input-button wcsearch-btn wcsearch-btn-primary” value=”<?php echo esc_attr($text); ?>” />

    <script>jQuery(document).ready(function($) {jQuery(“#sss-sidebar-source-div-1”).smartTabDrawer(“close”);});</script>

    <!– –>

  • #5552

    That was my whole code in php.

  • #5553

    I have no idea what to do with this code, it is without context. The last part, the script is the code that will close the sidebar, but the way it is here, it will do that as soon as the page is loaded, so nothing will happen. That code has to be triggered by something you do on the page.

    Milan

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.