Archived topic
Hide the title of the archive search results pages
7 replies · Started by Friedhelm on August 5, 2021
Dear GP team,
I am currently redesigning my archive search pages. The page title should be better designed (+ more detailed content). I managed the category page quite well with GB and elements. I got the "old" Wordpress title with [.category .page-header {display: none; ] hidden.
The search result page (meaning the search for archive to date) is not hidden (see journal.denkeler-foto.de ). The title can currently be seen twice. How can I hide it. Do you have an idea?
Many thanks
Friedhelm
Hi there,
Are you using a block element page hero?
https://docs.generatepress.com/article/block-element-page-hero/
If so can you try the disable title option?
https://docs.generatepress.com/article/block-element-page-hero/#disable-title
Hello Leo, thanks for the super quick answer.
I used the block element "headline": Settings:
Element type: Hook
Hook name: after_header
Try using a block element page hero I suggested above instead.
The result should be the same except you can use the option I pointed out.
That was a great tip and so easy!
I adjusted the category page and the search result page (meaning the search for archive to date) with page hero.
I wanted to do the same with the search result page using page hero, but that didn't work. The searched term is not given as the title, but the title of the first post found. In addition, the previous title cannot be hidden. (see search example: ournal.denkeler-foto.de).
How can I deal with this case?
Hi there,
yeah - we will be patching that in the next updates.
In the meantime you would have to create a shortcode to output the Search Title instead of the Dynamic Text. Elvin provides the code for that here:
https://generatepress.com/forums/topic/header-element-for-search-pages/#post-1880017
David, thank you very much for your answer.
I'm already looking forward to the further development of GeneratePress.
Inserting a PHP function is too complicated for me at the moment. I temporarily spruced up the search function with CSS.
Glad to hear you found a solution!