Hi, I would like to add the wordpress admin bar above beaver builder. Can this be achieved by adding <?php wp_head(); ?> and <?php wp_footer(); ?> in a beaver builder file. Please tell me which file i need to add the code to so i can see the wordpress admin bar above the beaver builder page.
Hey Christopher,
The WP admin bar is actually present inside the Page Builder, just hidden via CSS. You can use these set of CSS snippets to enable the WP admin bar as well as adjust the Page Builder’s panels for it to fit in.
.fl-builder-edit #wpadminbar {
display: block !important;
}
html.yui3-js-enabled.fl-builder-edit {
margin-top: 75px !important;
}
body .fl-builder-bar {
top: 32px;
}
body .fl-builder-panel {
top: 75px;
}
Hope this helps!
Ben
It worked. The only problem is that the links don’t work when I click on them. Some conflict i guess.
Do you have any ideas for a fix? The admin bar works normal in other pages just not in the page builder.
Hey Christopher,
Sorry as I was a bit hasty with my reply there. I totally forgot that BB disables all links when inside the Page Builder. I’m gonna ask the guys if there is a way around this.
Ben
Hi Christopher! Sorry, I don’t think there’s any way to “re-enable” those links. Just out of curiosity, why do you want to be able to access the admin bar from the builder? There might be another option.
My page builder installation is for multisite. Upon login users are redirected to the home page in beaver builder.
The admin bar has “My Account” and “logout” and some other links I added to simplify wordpress like pages, menu etc. I have completely removed the wordpress admin left menu so the only menu is in the top bar to give the illusion that their is no admin area.
I wanted the admin top bar on every page for consistency like weebly. At the moment I only need to add the admin bar to the BB Theme customize page and beaver builder to complete my requirement.
Any help would be great. i really want this to work.
I noticed the menu links are enabled (Home, about, contact us etc.) Is it possible that the same code to enable the menu links can be applied to the top admin bar?
Hmm. I see. I hate to say it, but I don’t think the code we’re using to enable the navigation links will work. I am trying to think of a good work around, but I can’t think of anything. You can definitely add this as a feature request on our User Voice page, though:
https://wpbeaverbuilder.uservoice.com/forums/270594-general
If the feature gets a few votes, we’ll be a lot more likely to implement it!