Skip Navigation

[Resolved] layout the category-title und category-content in a custom way

This thread is resolved. Here is a description of the problem and solution.

Problem:

I want to customize the layout of the category title and category description on an archive page, but Toolset doesn’t provide options for this. I’m using Toolset with GeneratePress and GenerateBlocks.

Solution:

The category title and description are likely controlled by the GeneratePress theme rather than Toolset. You can try adding the following code to your theme’s functions.php file to hide them:

add_filter( 'get_the_archive_title', '__return_false' );
add_filter( 'get_the_archive_description', '__return_false' );

If this doesn't work or you need further customization, contact GeneratePress support for guidance on modifying the title and description layout.

Relevant Documentation:

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by matthiasK-4 1 month, 3 weeks ago.

Assisted by: Christopher Amirian.

Author
Posts
#2782750
Bildschirmfoto-2024-11-08-um-16.35.16.jpg
Bildschirmfoto-2024-11-08-um-16.33.02.jpg

I would like to customize the layout of the category title and category description on an archive page, but the Toolset archive doesn’t seem to allow adjustments to the title and description display.

I'm currently using Toolset with GeneratePress and GenerateBlocks.

#2782943

Christopher Amirian
Supporter

Languages: English (English )

Hi,

This seems to be generated by the GeneratePress theme and not Toolset actually.

Toolset does not have control over that. I suggest that you contact GeneratePress support to know if there is an option in Dashboard or maybe a hook that can be used to remove those titles.

If the theme uses the standard WordPress functionality adding the lines below on the functions.php file of the theme should od the trick:

add_filter( 'get_the_archive_title', '__return_false' );
add_filter( 'get_the_archive_description', '__return_false' );

But if not, the best way is to contact GeenratePress support.

Thanks.

#2783052

Thanks, I will contact the generatePress Support.
Best regards and a good week, Matthias