Add a Show/Hide Search Box to the Menu Area of the MH Magazine Lite Theme

Today I’ve come across an interesting question on the support forum: How do I add a toggling search box to the MH Magazine Lite theme?

Here’s a video that shows you how to accomplish this (download .zip file available).

Download .zip File

You can freely download and use the demo files for this tutorial.

If you intend to distribute your theme, all strings of text should be translation-ready. Therefore, a better approach to the screenreader text in header.php presented in the video is the following:

_e( 'Click here to display searchbox', 'mh-magazine-lite-child' )
_e( 'Click here to hide searchbox', 'mh-magazine-lite-child' )

The download files have been updated accordingly.


Was this tutorial useful? Let me know 🙂


Have your Say

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s