WP Snipp Ninja

How to remove Genesis Framework post meta along with the Footer wrap on blog loop and single.php?

Author: Dimitar Radev | Posted on: November 10, 2019 |


Hello,

In this article, I will show you how to remove the footer wrap when removing the post meta in the Genesis Framework. When we want to remove the meta from the post in Genesis we are told just to remove genesis_post_meta however, this leaves the <footer> tag empty and that is not OK. In order to remove the post meta footer wrap, we need to remove also genesis_entry_footer_markup_open and genesis_entry_footer_markup_close.

Below you can see the whole piece of code


//Remove the entry meta in the entry header (requires HTML5 theme support)
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
//Remove the entry footer markup (requires HTML5 theme support)
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );

 

I hope this mini-tutorial was helpful.
Have a great one!


About the Author

 Dimitar Radev

Hey, I'm Dimitar "B1-0S" Radev or D in short. I'm a WordPress Developer for nearly 10 years and I have in-depth knowledge in creating Custom WordPress Themes, Plugins, Commercial Themes Edits, and WooCommerce Storefronts. In the last two years, I'm specializing in Technical SEO for WordPress websites.


Follow Dimitar Radev on Social Media

Leave a Reply

Your email address will not be published. Required fields are marked *