Robolisk
Robolisk

Reputation: 1792

auto hide the sidebar menu - wordpress

http://www.new.techmoney360.com is the website and it's made in wordpress.

If you visit the site you will see a big "showcase" type banner as the first item below the navigation bar.

To the right is optional other posts that a user can choose, or they can choose to hide it or show it.

By default, it's showing. I would like to make it hide on default and have the option to show it instead.

Anyone know how I can do this?

Upvotes: 0

Views: 1101

Answers (1)

oprilzeng
oprilzeng

Reputation: 109

Open the file /wp-content/themes/discussionwp/assets/js/modules.min.js, find the first mkd.windowWidth<769?, where the 769 (actually 768) means the maximum window width to auto hide the "showcase" on default. You can modify this number into a larger one (which is obviously larger than normal width of browser window, such as.. 9999?) without editing other part of this encrypted JavaScript file.

Once you've done this, there will be an animation of hiding progress when you visit the site. If you want to get rid of this animation as well, you can add a property style="left: 100%;" in <div class="mkd-post-block-part mkd-pb-four-non-featured">, in Line 813 (as I can see) of the index file.

Upvotes: 1

Related Questions