- This topic has 12 replies, 3 voices, and was last updated 6 months, 3 weeks ago by
Carsten.
-
AuthorPosts
-
August 4, 2020 at 11:38 am #1387307
Carsten
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 #1387400David
StaffCustomer SupportHi there,
is the Page > Search a standard page or is it the
Search Results
?Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 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 #1387950David
StaffCustomer SupportWhich ‘hook’ are you using on the Register page ? Is the same as the one used in the Hook Element ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 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_header
the Block element does not display.August 5, 2020 at 3:50 am #1387997David
StaffCustomer SupportDoes the Block Element display if you change the Display Rules Location or a Different Hook?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 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 #1388059David
StaffCustomer SupportDoes it show if you set it to display on a normal ( not BuddyPress ) static page ?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 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.Thanks
August 15, 2020 at 9:50 am #1404206Tom
Lead DeveloperLead DeveloperHi there,
Did you try a regular Hook on a BuddyPress page? Did that not work either?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 15, 2020 at 10:31 am #1404260Carsten
Hi, yes a regular Hook, or a BP Hook, like
bp_after_profile_content
does 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 #1404379Tom
Lead DeveloperLead DeveloperMakes 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentAugust 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.
Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.