This post will give you several options you can choose from to display any type of content after all single posts titles.
After Title But Before Entry Meta
function after_title_text() {
if(is_single() ) {
echo '<h4 class="single-title">Add content after your titles but before your content here</h4>';
}}
add_action('genesis_entry_header', 'after_title_text', 11 );
After Title & After Entry Meta
function after_title_text() {
if(is_single() ) {
echo '<div class="single-title">Add content after your titles but before your content here</div>';
}}
add_action('genesis_entry_header', 'after_title_text', 11 );
Add Text After Entry Titles
Add Widget After Entry Title
genesis_register_sidebar( array(
'id' => 'after-title',
'name' => __( 'After Title', 'theme' ),
'description' => __( 'This is the after title widget area.', 'theme' ),
) );
add_action('genesis_entry_header', 'after_title_widget', 11 );
function after_title_widget() {
if ( is_singular( 'post' ) )
genesis_widget_area( 'after-title', array(
'before' => '<div class="after-title widget-area">',
'after' => '</div>',
) );
}
Simply change the 3rd parameter from 11 to 12 if you want to output the widget content after the entry meta (post info).
Widget After Entry Title For Posts In 1 Category
Replace your-category-slug with the slug or I.D for your category.
Was This Tutorial Helpful?