- This topic has 4 replies, 3 voices, and was last updated 5 years, 4 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support › Forums › Flex Theme › How to hide Post meta and Entry Footer on blog page
Hi…
How to hide Post meta and Entry Footer on blog page only screenshot: http://prntscr.com/8gy0lg but show in single post.
Regards,
Add following code to style.css file before media queries
.page-template-page_blog .entry-meta {
display: none;
}
Wow super fast, thanks a lot. Can you also provide me the code for archive page?
Screenshot: http://prntscr.com/8gyjlc & http://prntscr.com/8gyjsu
Here is the code for tags and category pages.
.tag .entry-meta,
.category .entry-meta {
display: none;
}
Or You can try this PHP script. Add this small code in your functions.php file:
add_action('genesis_before_loop', 'flex_show_post_meta_on_single_page' );
function flex_show_post_meta_on_single_page() {
if( is_singular( 'post' ) )
return;
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
}