WordPress

GeneratePress Snippet Collections

Updated at

I list some of the most used snippets I use when building a website using GeneratePress theme. In certain occasions, some because of SEO purpose too, I have to get rid or add some elements. Check this out!

Remove Archive Title

When you think you need to remove page heading (h1) on the archive page, like category or tag page, use this one.

add_action( 'after_setup_theme', function() {
    remove_action( 'generate_archive_title', 'generate_archive_title' );
} );