Archived topic
Full Screen Category Description
5 replies · Started by Rohith on September 5, 2022
Hi there, we are looking for full screen category description (Check PVT). No sidebar should be there in the description area only. The sidebar should be present in the list posts. Please help me with this.
Hi there,
you can use a Block element - page hero:
https://docs.generatepress.com/article/block-element-page-hero/
You can display the Title with the GB Headline block and dynamic data.
And you can display the description using the GP Dynamic Content Block.
Is that possible with code?
Hi Rohith,
Can you provide the link to the site in question?
Here's it
Try adding this PHP Snippet:
add_action('wp', function(){
if ( is_category() ) {
remove_action( 'generate_archive_title', 'generate_archive_title' );
add_action( 'generate_inside_container', 'generate_archive_title' );
}
});
It may require some CSS to position it afterwards - let me know.