Created
January 12, 2014 21:22
-
-
Save bizzthemes/8390745 to your computer and use it in GitHub Desktop.
Display sidebar before each single post entry
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 | |
//* Do NOT include the opening php tag, only copy the code below | |
//* Display sidebar before each single post entry | |
add_action( 'bizznis_before_entry', 'custom_after_entry_widget' ); | |
function custom_after_entry_widget() { | |
if ( is_singular( 'post' ) ) { | |
# function that returns sidebar widgets for the registered area | |
bizznis_widget_area( 'before-entry', array( | |
'before' => '<div class="before-entry widget-area">', | |
'after' => '</div>', | |
) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment