Admin ToolBar Missing?
-
So after much frustration on my end as well as others on this forum, I’ve finally found a solution that a number of us are facing with this plugin, which for many of us, depending up on it’s interaction with other plugins/themes, removes the admin toolbar from the front-ends of our sites unless a popup is actively being displayed.
The issue is an action called in load-popups.php on line 104:\
add_action( 'wp_footer', 'popmake_render_popups', 1 );
Clearly, setting the priority to 1 is questionably effective on more advanced sites where many other plugins are likely to also step on its feet. For me, for the admin toolbar to show back up again, I had to actually set the priority to 1000.
If you want a nice easy fix to keep so that you don’t have to undo your changes with updates of this plugin (if the plugin authors don’t decide to address this directly), you can use the following code in your theme’s function.php file:
//Override footer action and delay it for Popup Maker plugin to not remove admin bar add_action( 'wp_head', 'remove_popmake_render_popup_action' ); function remove_popmake_render_popup_action(){ remove_action( 'wp_footer', 'popmake_render_popups', 1 ); } add_action( 'wp_footer', 'popmake_render_popups', 1000 );
- The topic ‘Admin ToolBar Missing?’ is closed to new replies.