Skip to content

Instantly share code, notes, and snippets.

@fovoc
Last active August 29, 2015 14:04
Show Gist options
  • Save fovoc/131ec7444be9995faf92 to your computer and use it in GitHub Desktop.
Save fovoc/131ec7444be9995faf92 to your computer and use it in GitHub Desktop.
Shoestrap 3 - remove page title from template & insert it before the main tag
<?php
function my_custom_page_content() {
global $ss_framework;
while ( have_posts() ) : the_post();
//shoestrap_title_section();
do_action( 'shoestrap_entry_meta' );
do_action( 'shoestrap_page_pre_content' );
the_content();
echo $ss_framework->clearfix();
shoestrap_meta( 'cats' );
shoestrap_meta( 'tags' );
do_action( 'shoestrap_page_after_content' );
wp_link_pages( array( 'before' => '<nav class="pagination">', 'after' => '</nav>' ) );
endwhile;
}
add_action( 'shoestrap_content_page_override', 'my_custom_page_content' );
function add_titles_before_main_section() {
if ( is_page()) {
shoestrap_title_section();
}
}
//add_action( 'shoestrap_pre_main', 'add_titles_before_main_section' );
add_action( 'shoestrap_pre_wrap', 'add_titles_before_main_section' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment