Created
November 14, 2014 10:30
-
-
Save fovoc/310b4883aa3dd074fccc to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
function my_custom_pre_main() { | |
echo 'This content will be visible after the content div and before the main content.'; | |
} | |
function only_in_single_posts() { | |
if ( is_single() ) { | |
add_action( 'shoestrap_pre_main', 'my_custom_pre_main' ); | |
} | |
} | |
add_action( 'init', 'only_in_single_posts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment