- This topic has 12 replies, 3 voices, and was last updated 1 month, 2 weeks ago by Carsten.
August 4, 2020 at 11:38 am #1387307Carsten
Hi there, sorry to bother you guys again 😉 this time it is a block element issue which does not display.
I think I have done all I can added a Headline block, defined the block type as hook, and added a location. I have changed the hook and the location, but still, the block element does not display. What do I do wrong here?
Thanks!August 4, 2020 at 1:13 pm #1387400DavidStaffCustomer SupportAugust 4, 2020 at 1:21 pm #1387413Carsten
It’s a standard page, domain/search.
The Headline block is displayed on the search page now.
But not on the register page, domain/register.
An image is added on the same register page, by a Hook element, and this image is displayed.
Same settings, so the hook is ok, and the entire site location, as well.
So something is preventing the block element from displaying.August 5, 2020 at 3:08 am #1387950DavidStaffCustomer SupportAugust 5, 2020 at 3:19 am #1387965Carsten
Yes, exactly the same custom hook, bp_before_register_page. But even if I use a general hook, like
generate_after_headerthe Block element does not display.August 5, 2020 at 3:50 am #1387997DavidStaffCustomer SupportAugust 5, 2020 at 4:07 am #1388005Carsten
First I suspected the issue to be with BuddyPress, but now I’m not so sure anymore.
It’s like the Block element is very sensitive to specific hooks and locations. Cache is also playing in, so it is very difficult to see a specific pattern, so I will do some more testing.
Thanks!August 5, 2020 at 5:28 am #1388059DavidStaffCustomer SupportAugust 14, 2020 at 1:15 pm #1403247Carsten
Hi there, the issue is not solved, but I’m closing the topic, since the issue is with elements in general, using elements with BuddyPress pages.
It would be really nice if you could locate why elements does not output on BP pages.
ThanksAugust 15, 2020 at 9:50 am #1404206TomLead DeveloperLead DeveloperAugust 15, 2020 at 10:31 am #1404260Carsten
Hi, yes a regular Hook, or a BP Hook, like
bp_after_profile_contentdoes actually work, with the display rules set to Entire Site, but not Layout and Block Elements, from my experience.
So if a Hook decides the position, it will work, but not when using display rules.August 15, 2020 at 1:08 pm #1404379TomLead DeveloperLead Developer
Makes sense, I don’t believe BuddyPress uses conventional WordPress conditions (as funny as that is), so our Display Rules aren’t aware of their specific conditions/rules when it comes to displaying.
We’ll see if it’s something easy enough to add compatibility with.August 15, 2020 at 1:43 pm #1404397Carsten
Sounds great, thanks for doing the effort, BP has +200.000 downloads, so I think many can benefit from this, if you succeed.
- You must be logged in to reply to this topic.