-
-
Save jamiemitchell/8b23a9f296fe036430b9efb687c58070 to your computer and use it in GitHub Desktop.
Add shortcode for search form in Genesis Framework
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 | |
/** | |
* Search Shortcode Excerpt | |
* @since 1.1 Genesis 404 Page plugin | |
* @author Bill Erickson | |
*/ | |
function search_shortcode() { | |
return '<div class="genesis-404-search">' . get_search_form( false ) . '</div>'; | |
} | |
// Add shortcode for search form in Genesis Framework | |
add_shortcode( 'genesis-404-search', array( $this, 'search_shortcode' ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment