I have created a sticky header that includes 2 headers: header-1st-row and header-2nd row. They work fine in the live view without the admin-bar. But, when I’m logged in, header-2nd row cover, the first header. I read somewhere that it could be because of the admin bar. Is there a way to fix this?
I’m adding the code, in case you need it:
/*sticky header*/
@media only screen and (min-width: 1025px) {
.header-layout2 .headroom--not-top .header-2nd-row {
display: block;
}
.header-2nd-row {
margin-top:20px;
border-top:1px solid #dadada;
border-bottom:1px solid #dadada;
}
}
/*sticky header always on the top */
.headroom--not-top.headroom--unpinned {
-moz-transform: translateY(0);
-webkit-transform: translateY(0);
-o-transform: translateY(0);
-ms-transform: translateY(0);
transform: translateY(0);
}
Thank you!
]]>I am facing an issue with the user registration plugin. On activating the plugin, the wp-admin bar and all the images of the home page disappear. But it works fine with on all other pages. Please have a look and let me know how i can send u my site credentials as i do not find any close option for creds here.
]]>I’ve been building up my WP site for about 6 months now with no issues but a slight one appeared yesterday.
My WP Admin toolbar that shows up at the top of my site when logged in to WP now appears to be broken visually, and instead of the toolbar, plain text options appear without CSS it seems.
Here’s a screenshot:
https://prnt.sc/106jiz7
This section appears before the website homepage at the top instead of the regular toolbar.
Here’s a screenshot of how it looks together with the site zoomed out:
https://prnt.sc/106jknr
I’m not entirely sure what change made this happen. I’ve been having some other issues with the website appearing without the theme’s proper stylesheet up ’till this point and been trying to fix that.
After I did fix it, this toolbar issue popped up.
I’ve used Autoptimize and Cache Enabler as my optimization and cache plugins, been switching their features on and off to see if they conflict with the site.
I’ve now completely deleted these two plugins and the issue with the toolbar still persists.
I’ve also contacted my hosting provider’s support and they haven’t been that much of a help honestly, they flushed server-side cache but nothing changed.
I’ve also switched to different themes, and all of them seem to show the same broken toolbar section. I’ve also deleted my theme (Fascinate) completely and reinstalled it but even with fresh files, still the same thing.
Mind you, this only happens when viewing the site while logged in to it, as when I log out and view the site as a normal visitor, the issue isn’t occurring obviously.
All the plugins I’m currently using:
https://prnt.sc/106jsrq
I’ve cleared browser cache and checked this with multiple devices (2 laptops and 2 phones), used a different internet connection, flushed DNS – doesn’t seem like a caching issue.
I know this might be a little tricky to assist from your side but any ideas in the right direction would be much appreciated! I’ll provide any additional info if needed.
Thanks
Julius
since today I have an issue with my wp admin bar.
On the backend everthing looks fine, but when I’m on the frontend as a logged in user it shows me something like Japanese signs and numbers next to CUSTOMIZER, NEW, EDIT PAGE and so on.
I’m working with Elementor Page Builder and usually it also shows me EDIT WITH ELEMENTOR in the wp admin bar and this button is not there at all.
Also Elementor is not loading the page previews correctly.
Any Idea what can cause the issues?
I also deactived Elementor to see if has an effect, but there was no difference.
Any idea is appreciated.
THANK YOU
Michael
The plugin was breaking the admin bar on individual posts (not on pages). Tracked it down to post ID detection code (for Purge Current Page menu item).
Here’s the diff:
diff --git a/wp-content/plugins/w3-total-cache/Util_Environment.php b/wp-content/plugins/w3-total-cache/Util_Environment.php
index 22bd41821..87ac0bcfb 100644
--- a/wp-content/plugins/w3-total-cache/Util_Environment.php
+++ b/wp-content/plugins/w3-total-cache/Util_Environment.php
@@ -1038,8 +1038,8 @@ class Util_Environment {
return $post_ID;
} elseif ( $comment_post_ID ) {
return $comment_post_ID;
- } elseif ( ( is_single() || is_page() ) && isset( $posts[0]->ID ) ) {
- return $posts[0]->ID;
+ } elseif ( ( is_single() || is_page() ) && isset( $posts->posts[0]->ID ) ) {
+ return $posts->posts[0]->ID;
} elseif ( isset( $posts->ID ) ) {
return $posts->ID;
} elseif ( isset( $_REQUEST['p'] ) ) {
]]>I have way too many items on my Admin Bar, that overlap onto the site.
So I’ve tried adding this to functions.php file (GeneratePress child theme) :
function remove_toolbar_items($wp_adminbar) {
$wp_adminbar->remove_node('wp-admin-bar-updates');
$wp_adminbar->remove_node('wp-admin-bar-comments');
$wp_adminbar->remove_node('wp-admin-bar-stats');
$wp_adminbar->remove_node('wp-admin-bar-cs-explain');
}
add_action('admin_bar_menu', 'remove_toolbar_items', 999);
But it did not change anything,
Any idea of what might have cause the problem?
Thanks in advance,
v
]]>I tried to search online, and found it happens due to issues with wp_footer() function, which is found in footer.php of theme files. But it seems no issue with that function.
I also use comet cache on site, but for logged-in users caching is disabled. I will try to erase my cached files and check again if it fixes the issue.
If you or anyone faced similar issue please help.
]]><?php wp_footer(); ?>
or caching CSS admin-bar.min.css, dashicons.min.css which I excluded in caching but still no luck.
The admin bar shows when in dashboard but disappears when navigating site pages which was working always now getting worse…I figure I check here in case its related to footer. TY for any guidance.
]]>