Archived topic
Cross compatibility between GeneratePress Premium (Elements) & Beaver Themer
7 replies · Started by Alok Sharma on May 10, 2021
Hi,
I was playing with the Elements section of GeneratePress Premium by creating a Block and then assigning it as a hook to be displayed after the main content for a specific custom post type. However, it was not working because a Beaver Themer template was taking over the singular post template for that custom post type.
I disabled the particular template in Beaver Themer and GeneratePress was able to display the custom contents after the main content.
My question is that how is the cross compatibility between GeneratePress Premium & Beaver Themer defined. For e.g. in which scenarios Beaver Themer will take precedence of the GeneratePress Elements (Hooks, Blocks, Layouts & Header).
Hi there,
Beaver Builder changes the content template of the site so the default theme's content template that contains the hooks will not work.
That's why your Block element that was hooked to some hook didn't work. The hook basically didn't exist because Beaver builder has overridden it. There was no place to hook the element on.
You can try if generate_before_footer hook works but I'm not exactly sure if Beaver Builder got that as well.
Hi,
I had a thought that GeneratePress Elements can work seamlessly with page builders, for e.g. extending functionalities using PHP/HTML/JS codes, hooks etc.
However, it is not the case. If a template is created and set as active in Beaver Themer, then GeneratePress Elements will have no precedence over Beaver Themer template.
In short, I can either use Beaver Themer or GeneratePress Elements, but not both. Whatsoever, Beaver Themer will always have a higher priority over other aspects of the themes and its functionalities depending on how it is set up.
That clears all the confusions & doubts I had regarding Beaver Themer & GeneratePress Elements.
However, it is not the case. If a template is created and set as active in Beaver Themer, then GeneratePress Elements will have no precedence over Beaver Themer template.
You can still use GP Elements as long as you know the right hooks. While Beaver Builder changes the template, it has its own hooks.
If you can still hook in GP Block Elements using these hooks - https://hooks.wpbeaverbuilder.com/bb-themer/
Hi,
I contacted Beaver Builder support, and they said that the singular themer layout takes over the entire content area so any hooks/positions inside it stop working.
After trying all the hooks, I found the following hooks to be working:
before header
after header
before footer
before footer content
after footer content
after footer
And the following hooks not working:
before header content
after header content
before main content
before content
after content
after main content
after footer widgets
before title
after title
after title header
after post content
I personally feel that the Layouts, Blocks & Hooks feature of GeneratePress Elements when applied to the GeneratePress theme itself is anyway a better choice rather than relying on the themer component of the page builders.
Furthermore, I don't see any point in wasting time on this Beaver Themer thing.
I contacted Beaver Builder support, and they said that the singular themer layout takes over the entire content area so any hooks/positions inside it stop working.
Makes sense.
Nice find btw! Good one listing the known non-working hooks for Beaver builder.
Personally, I think Gutenberg editor + GenerateBlocks is generally enough for doing layouts.
Gutenberg is WordPress default so it's not exactly theme-disruptive as page builders do.
And GB blocks are pretty simple to understand as well. :D
Thanks! and no problem. Glad you got it sorted.
Hi,
Precisely, I am now considering switching to GB Pro which very much works out of the box.
Good choice! Let us know if you need further help with it. :D