Archived topic
Can not get element to show on category
15 replies · Started by Morgan on February 22, 2022
I have set an element to be visible on certain post category list pages but i can not get an element to show.
I have deleted /category/ from the URL-structure with SEOPress.
Hi there,
which Display Rules did you set in the Element ?
I have set Post Category.
If its for the archive page, then change it to Post Category Archive
Not working and on some of the category links its open a post?
https://wordpress-718213-2385986.cloudwaysapps.com/alla-nyheter/
What is the Element ?
It is a Hook that supposed to show the second menu. It works fine her, where there is pages and not categorys:
https://wordpress-718213-2385986.cloudwaysapps.com/om-sveg-se/
But here, where i have categorys to be shown its not working:
https://wordpress-718213-2385986.cloudwaysapps.com/alla-nyheter/
This is what i see:
Yes, but try to click the menu items, 'Sport', Kultur & Nöje' etc. and you se what happens.
Try regenerating your Permalinks by going to Settings > Permalinks and click Save Changes.
Ahh, tried that before but it did not work. No it did. Thanks for pointing that out to me. :) Thanks!
You know how to disable the title on the categories?
https://wordpress-718213-2385986.cloudwaysapps.com/nyheter/kultur-noje/
You can use this PHP Snippet:
add_action( 'after_setup_theme', function() {
remove_action( 'generate_archive_title', 'generate_archive_title' );
} );
I added that snippet to the function.php-file but the titles are still visible:
https://wordpress-718213-2385986.cloudwaysapps.com/nyheter/sport/
Try clearing any caches including the browser cache.
I managed to solve it. I had a header Element set up. :)