nomadjimbob/mikio

Option to set sidebar as folded by default in narrow mode

GJRobert opened this issue · 7 comments

I prefer to fold/hide the sidebar in responsive narrow views when the page is first loaded, and let the user to unfold it if necessary.

Is it possible to set a toggle in the conf?

I'll add this feature for collapsable the left and right sidebars when in desktop mode in the next release.

I'll add this feature for collapsable the left and right sidebars when in desktop mode in the next release.

Hi,
in case I might have expressed myself wrong,

Actually I just hope to collapse the sidebars in the mobile (narrow) mode by default (when the page is loaded)

Since presently, the sidebar (I am only using the left one, not yet tested the right one) is fully displayed in the mobile mode by default like this:
2020-09-17_13-54-04

I hope to let readers to see the page content more instantly when the page loads, so that we can save the click on the "Sidebar" toggle. 👍

So I am okay with the present behavior of sidebars in the desktop (wide) mode (not collapsible but not my concern)

I just updated the title of this issue. Sorry for the under-expression. (not clarifying enough)

Oh ok. sorry for the misunderstanding. As an example in the mikio.php file if you change the text on line 670 from class="mikio-sidebar-toggle" to class="mikio-sidebar-toggle closed", does that have the desired affect?

Oh ok. sorry for the misunderstanding. As an example in the mikio.php file if you change the text on line 670 from class="mikio-sidebar-toggle" to class="mikio-sidebar-toggle closed", does that have the desired affect?

Oh that's great! Exactly what I need! Thanks for that tip!

Oh ok. sorry for the misunderstanding. As an example in the mikio.php file if you change the text on line 670 from class="mikio-sidebar-toggle" to class="mikio-sidebar-toggle closed", does that have the desired affect?

Oh that's great! Exactly what I need! Thanks for that tip!

Cool. I believe that should be the default for the theme. I'll add it into the next release as the default with the reverse option in config to not hide the sidebar on mobile by default

Option added to release 2020-09-27