Site logo

Archived topic

page title

5 replies · Started by hitesh on March 19, 2022

Viewing posts 1–6 of 6

Hello GP people,

This time I'm having an issue with removing page titles from the site.

I used the elements option with success for most of the part, but it's removing the post titles from the category archives while the actual category title is still present.

ex. https://mustechie.com/category/blockchain/

Is there any CSS or kind of thing to remedy this? Please note I would hate to install a plugin for these things.

Thanks

Hi there,

add this PHP Snippet to remove the Archive Title:

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

This doc explains how to add the PHP:

https://docs.generatepress.com/article/adding-php/

Hi David,

thanks for the prompt reply.

But I'm only halfway there since it removes the category titles, but the actual post titles aren't showing up.

Is there a workaround?

https://mustechie.com/category/blockchain/

Thanks Fernando,

you were right. I have set it when I was trying my bit to resolve this issue.

It's all sorted now. Many thanks.

You’re welcome Hitesh! Glad to be of assistance! Feel free to reach out anytime if assistance with anything else is needed. :)

This archived topic is closed to new replies.