Created
August 2, 2012 21:59
-
-
Save ramseyp/3241052 to your computer and use it in GitHub Desktop.
Using wp_is_mobile to conditionally load the search form in Twenty Eleven's header.php file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* Wrap get_search_form with wp_is_mobile() to conditionally load the form in the header. | |
* | |
*/ | |
if ( !wp_is_mobile() ) { | |
get_search_form(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment