Created
May 22, 2019 15:10
-
-
Save Hermanmou/937bc56069df30a43e2c9c7122cfaf1f to your computer and use it in GitHub Desktop.
Below Header Widget
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
// Hook before header widget area. | |
add_action( 'genesis_after_header', 'digimanx_after_header' ); | |
function digimanx_after_header() { | |
if ( is_page_template( 'page_blog.php' ) || is_single()) { | |
genesis_widget_area( 'blog-widget', array( | |
'before' => '<div class="blog-widget"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment