Archived topic
Block Element Not Showing Up On Category Archive Pages
8 replies · Started by Sasha on February 21, 2022
Hi there,
I have a block element "HEADER - All Pages - (Exc. Front Page + About)" that is set to appear on Category Archive Pages, but it's only showing up on my main blog roll. Can you please help?
Hi Sasha,
If you choose entire site as location, there's no need to to add post category archive to it.
Looking at your display rule, the element should show up on category archive.
What is the block element content? What is the block element type? Where I should be looking at it?
Can you take a screenshot of all your elements for us to inspect if there're any display rule conflicts?
Thank you for your reply, Ying!
The Block Element Content is a Custom Title Header that looks like this:
The Block Element Type is a Hook. Here is a screenshot of all my Elements:
And I was actually wrong– it's not showing up on the URL I originally linked (but it should). In private info, I'll put a URL where the Element actually appears. Sorry about that.
Hi Sasha,
Can you try hovering over the Elements button in the admin bar while viewing these pages? Moreover, can you check which Elements are visible when hovering?
See: https://share.getcloudapp.com/P8u6Adjv
Can you also try hooking the Block Element to a different location like “after_main_content” and see what happens?
Moreover, can you also try rebuilding your permalinks?
See: https://www.inmotionhosting.com/support/edu/wordpress/reset-permalinks-wordpress/
Lastly, can you also try clearing you cache?
Hope to hear from you soon! :)
The element was definitely visible when hovering over the Elements menu on all pages in question (both the pages which showed the element & the pages which weren't showing it).
However, changing the hook location fixed the issue– I hooked to "before_main_content" instead of "before_content" – and now the element is appearing everywhere it should be.
Thanks for your help!
Actually, sorry – I can't get the default page title to go away, even though I have a layout element active on all the pages in question to disable it. Any ideas there?
Hi Sasha,
I'm only seeing the default title:
https://www.screencast.com/t/iFr1GAKbp
Layout element disable title option disable the entry title, but can't disable the archive title.
Can you try change the element type to page hero?
Let me know :)
Thanks Ying! That worked :)
Glad to hear that :)