show and hide sidebar by click or hover

Sencillo
12 Posts
Sencillo posted this 17 June 2016

Hi,
is it possible to show and hide sidebar by click on a button, icon, image, hamburger-icon or something else. In the sidebar I want to give my responsive horizontal menu with hamburger-icon, further informations, image, logo and so on. But it only have to be visible if the user want this. Instead of this feature it would also help me if the width of the sidebar can expand by click.
Thanks for help

Hi, is it possible to show and hide sidebar by click on a button, icon, image, hamburger-icon or something else. In the sidebar I want to give my responsive horizontal menu with hamburger-icon, further informations, image, logo and so on. But it only have to be visible if the user want this. Instead of this feature it would also help me if the width of the sidebar can expand by click. Thanks for help
Vote to pay developers attention to this features or issue.
8 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 21 June 2016

Hi,

Themler itself does not have such feature. But you can add a button+custom js or html control with button and custom js which will hide specific element (by class) on click. This is quite easy task but it requires some coding. I can provide you with example if you describe what EXACTLY you want in more details or example of what exactly you want to achieve.

Thank you,
Olivia

Hi, Themler itself does not have such feature. But you can add a button+custom js or html control with button and custom js which will hide specific element (by class) on click. This is quite easy task but it requires some coding. I can provide you with example if you describe what EXACTLY you want in more details or example of what exactly you want to achieve. Thank you, Olivia
Stagger Lee
1818 Posts
Stagger Lee posted this 22 June 2016

I just made it with TH only. One CMS control, some code and one hidden custom TH template. You can open sidebar with "Open link" and edit content inside in TH. Ad controls, widgets, menus, all. Position absolute for CMS control, some other small things, all in TH.

It needs some thinking about responsive, right width, scroll. But you do it only once for all next websites in the future.

<div class="wrapper-navbar-nav">
<div class="nav navbar-nav">
        <div class="dropdown navbar-right">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-lines"></i></a>
            <div class="dropdown-menu pull-left bg-warning" style="min-width:800px;width:100%;">


              <?php
$args=array(
  // cat'=> 606,
   'posts_per_page' => 1,
);
query_posts($args);


//Get the Posts
theme_blog_18();
wp_reset_query();
?>


              </div>
          </div>
          </div>
</div>

I just made it with TH only. One CMS control, some code and one hidden custom TH template. You can open sidebar with "Open link" and edit content inside in TH. Ad controls, widgets, menus, all. Position absolute for CMS control, some other small things, all in TH. It needs some thinking about responsive, right width, scroll. But you do it only once for all next websites in the future. <div class="wrapper-navbar-nav"> <div class="nav navbar-nav"> <div class="dropdown navbar-right"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-lines"></i></a> <div class="dropdown-menu pull-left bg-warning" style="min-width:800px;width:100%;"> <?php $args=array( // cat'=> 606, 'posts_per_page' => 1, ); query_posts($args); //Get the Posts theme_blog_18(); wp_reset_query(); ?> </div> </div> </div> </div>
Stagger Lee
1818 Posts
Stagger Lee posted this 22 June 2016

Best to use columns for all content inside expandable sidebar. More native control.

Best to use columns for all content inside expandable sidebar. More native control.
Sencillo
12 Posts
Sencillo posted this 22 June 2016

Hi,
thank you for help. Please tell me (step by step) where I have to add the code and the next steps I have to do to make this feature runable. This kind of theme-creation in themler is very new for me.
Thank you

Hi, thank you for help. Please tell me (step by step) where I have to add the code and the next steps I have to do to make this feature runable. This kind of theme-creation in themler is very new for me. Thank you
Stagger Lee
1818 Posts
Stagger Lee posted this 22 June 2016

Difficult to explain all clicks, it is not difficult to make.

  • Insert CMS control at any place, doesnt matter as it is postitioned with absolute or fixed. Best outside all other blocks, to keep it simple.
  • CMS Control = Responsive button for click.
  • dropdown-menu = Bootsrtrap class already prepared to keep contenjt loaded on page but hidden unless button is clicked.
  • Make one new Page template and call it something like Hidden something. It wont be used anywhere but there. Click on 2 instance "Customize this template", one under Design - Background, second under Posts control.
  • Disable Header and footer in this template and remove all blocks from it, specially Post content control.
  • Start adding one Section from Clipart as first demo.
  • Go back to Home / Default template and continue to insert all you want in hidden SIdebar directly there. Forget about Hidden template, no need to open it anymore.

Rest of click are simple CSS, cannot explain it. Positioning, margins, paddings, etc.

Difficult to explain all clicks, it is not difficult to make. - Insert CMS control at any place, doesnt matter as it is postitioned with absolute or fixed. Best outside all other blocks, to keep it simple. - CMS Control = Responsive button for click. - dropdown-menu = Bootsrtrap class already prepared to keep contenjt loaded on page but hidden unless button is clicked. - Make one new Page template and call it something like Hidden something. It wont be used anywhere but there. Click on 2 instance "Customize this template", one under Design - Background, second under Posts control. - Disable Header and footer in this template and remove all blocks from it, specially Post content control. - Start adding one Section from Clipart as first demo. - Go back to Home / Default template and continue to insert all you want in hidden SIdebar directly there. Forget about Hidden template, no need to open it anymore. Rest of click are simple CSS, cannot explain it. Positioning, margins, paddings, etc.
Stagger Lee
1818 Posts
Stagger Lee posted this 22 June 2016

You need to change number in "theme_blog_18();" to your just made hidden template number in Includes folder.

You need to change number in "theme_blog_18();" to your just made hidden template number in Includes folder.
Sencillo
12 Posts
Sencillo posted this 27 June 2016

Hi,
thank you very much, it works, but I only works with "theme_blog_1();" .Then my first Blog-Site ist shown. Where can I change the number of the page-template I called "Hidden". I can´t find the hidden template in folder wp-content/themes/"my theme"/includes ?
Next question: Is it possible to show and hide also a page-content ? I ask this, because now I saw that I can show and hide a blog-page-content, so maybe it´s also possible to do this with page-content too?
Thanks again

Hi, thank you very much, it works, but I only works with "theme_blog_1();" .Then my first Blog-Site ist shown. Where can I change the number of the page-template I called "Hidden". I can´t find the hidden template in folder wp-content/themes/"my theme"/includes ? Next question: Is it possible to show and hide also a page-content ? I ask this, because now I saw that I can show and hide a blog-page-content, so maybe it´s also possible to do this with page-content too? Thanks again
Stagger Lee
1818 Posts
Stagger Lee posted this 27 June 2016

In theme root find your last Page template, check template name is mention at top, and somewhere in the middle is number of file in "Includes" subfolder.

In theme root find your last Page template, check template name is mention at top, and somewhere in the middle is number of file in "Includes" subfolder.
You must log in or register to leave comments