Archived topic
Categories for postpages creating new pages?
9 replies · Started by Bram on February 17, 2020
A new subject came up:
By adding a categorie (Geestkracht) for my two posts on the page editor, I found out that by clicking on the categorie on the homepage, or elswhere in the footer on other pages, a page Geestkracht opened with a blank headerbackround.
Is this actually a new page that you have add a new headereffect on(colors etc)? Or simply use the header options in elements (dislplay rules location)?
https://rickmoeliker.nl/category/geestkracht/
I should like to have the page as shown in this example website https://geldkanon.nl/category/geldtips/
Kind regards
Bram
Hi there,
You would need to create page hero with this as the content:
Categorie: {{post_title}}
Then assign that to the post category archives in display rules.
Let me know if this helps :)
Hi Leo, thanks for your help, but I sunk into a weard problem.
The categorie page was fine as you discribed.
But suddenly the postpage Uitvindingen came up with the header of the postpage Creativiteit.
Whatever I tried, install image again etc, nothing seems to help. And now I am turning into circles.
Also I have disabled the page Categorie, to go back to the old situation, no result.
It looks like I have caused a conflict between the pages.
Please give me some suggestions.
https://rickmoeliker.nl/uitvindingen/
Kind regards,
Bram
Just sounds like some conflicts in display rules:
https://docs.generatepress.com/article/conflicting-display-rules/
Can you make sure to appropriate exclusions under display rules?
Let me know :)
Hi Leo, Thanks very much, with exclusions 'entire' site for the different posts, the problem is solved.
There is one left. On the created page categorie Geestkracht, you can see the title 'Geestkracht' in the white content (https://rickmoeliker.nl/category/geestkracht/)
Can I hide this title? The title in the header is perfect.
Kind regards,
Bram
Hi there,
add this PHP snippet:
add_action( 'after_setup_theme', function() {
remove_action( 'generate_archive_title', 'generate_archive_title' );
} );
Sorry David, but where exactly do I have to place this snippet?
I tried extra css, but the answer is : Unexpected token!
Kind regards,
Bram
That is PHP: https://docs.generatepress.com/article/adding-php/
Again great job!
Thank you very much!!!
Kibd regards,
Bram
No problem :)