Site logo

Archived topic

Category customization

2 replies · Started by Kevin on June 7, 2021

Viewing posts 1–3 of 3

Hey Team

actually i try to make the category pages more beautiful and fill with more information.
First i create a block hock like here https://docs.generatepress.com/article/block-element-content-template/ for one category to test.

Then i created a second block hook to add the informations above the posts.
Now i try to hide/delete the Title from the page, but it doesn`t work with "All archives" or "News Archive"

Any Idea or Tip

Best Kevin

Okey using

add_action( 'wp', 'lh_remove_archive_title' );
function lh_remove_archive_title() {
        remove_action( 'generate_archive_title', 'generate_archive_title' );
}

works and then instead of "after_archive_title" i use now "before_main_content"

But maybe there is a better solution.

Best

Hi there,

thats a perfectly valid method, or you can use a Block Element > Element Type Page Hero, select one of the predefined templates and make your edits. This will position your custom content above the main container and remove the default page header

This archived topic is closed to new replies.