Passer la navigation

[Résolu] layout the category-title und category-content in a custom way

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 support ticket is created Il y a 1 year, 7 months. There's a good chance that you are reading advice that it now obsolete.

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.

Ce sujet contient 1 reply, a 1 voix.

Dernière mise à jour par matthiasK-4 Il y a 1 year, 7 months.

Assisté par: Christopher Amirian.

Auteur
Publications
#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

Les langues: Anglais (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