Forum Replies Created
-
AuthorPosts
-
paul-useraidMember
OK, you got me thinking about what information is available when. I then noticed that in the article I linked in my last comment, it used get_header in the add_action... so this works:
add_action( 'get_header', 'ua_move_single_post_title' );
function ua_move_single_post_title() {
if ( is_singular( 'post' ) ) :
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 );
remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
add_action( 'genesis_before_content', 'genesis_entry_header_markup_open', 5 );
add_action( 'genesis_before_content', 'genesis_do_post_title' );
add_action( 'genesis_before_content', 'genesis_entry_header_markup_close', 15 );
endif;
}Thank you for your help!!
paul-useraidMemberI don't believe that is the issue, but I could be wrong. This approach was working actually at the beginning of November, so it is a change that was rolled out since then that affected it.
Also, I found the following article that does this same thing (outside the loop) and it works (I even tried using 'genesis_before_content_sidebar_wrap' instead of genesis_before_content) ...so I'm not sure why my implementation is different:
wpsites.net/web-design/reposition-title-before-content-sidebar-wrap-like-the-nytimes-post-layout/
//* Reposition the entry title (requires HTML5 theme support)
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_post_title', 2 );Any other ideas?
paul-useraidMemberThe issue is on the individual post page (not the listing of posts). For example, on the following page, notice that no heading is displayed:
http://www.lzlabs.com/perfect_storm/
It should show A Perfect Storm below the breadcrumbs and above the two-column content-sidebar.
The issue is with the line:
add_action( 'genesis_before_content', 'genesis_do_post_title', 8 );If I replace this line with a simple ECHO statement, that information is inserted in the correct location of the page.
Thank you for any help you can offer!
-
AuthorPosts