• Resolved wspc

    (@wspc)


    The top admin bar on my WordPress site is not displaying (www.alandacraft.com)

    It displays ok in the backend and on the home page but does not appear on any other pages.

    I have tried the following (based on suggestions on the internet) to try to fix these issues:

    1. Reinstalled WordPress
    2. Repaired the database.
    3. Changed the theme to Twenty Twelve.
    4. Deactivated all plugins.
    5. Created a new database for the site and transferred everything over to it.
    6. Ensured that ‘Show Toolbar When Viewing Site” is checked in User Profile.
    7. Ensured urls matched in WordPress settings.
    8. Deleted unnecessary tables in database.
    9. Optimized the site using WP-Optimize plugin.
    10. Ensure wp-head and wp-footer function are include.

    Any help would be much appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you inspect your site, do you see any errors in the console?

    Assuming Chrome:

    Right click on the page
    Choose Inspect
    Click on Console

    Thread Starter wspc

    (@wspc)

    No errors showing in the Console. Just can’t figure out what is causing this.

    @wspc,
    follow this steps:
    Go https://xyz.com/wp-admin/profile.php

    There have Toolbar option with checkbox ” Show Toolbar when viewing site”.
    Please tell me this on checked or not?

    or any code added for this hide admin bar
    add_filter('show_admin_bar', '__return_false');

    Thanks,
    Ravi patel

    @wspc
    hi. i faced the same problem last month.
    so i searched and i found the answer here :

    https://digwp.com/2011/04/admin-bar-tricks/

    check it out. it has so many options.
    ——-
    // always show admin bar
    function pjw_login_adminbar( $wp_admin_bar) {
    if ( !is_user_logged_in() )
    $wp_admin_bar->add_menu( array( ‘title’ => __( ‘Log In’ ), ‘href’ => wp_login_url() ) );
    }
    add_action( ‘admin_bar_menu’, ‘pjw_login_adminbar’ );
    add_filter( ‘show_admin_bar’, ‘__return_true’ , 1000 );
    ——
    but in my opinion, you have to make the admin bar available only for admin.
    not for users.

    Masoud Ahmadpour.

    Thread Starter wspc

    (@wspc)

    Just ended up transferring the site to new hosting and that fixed it (although the hosting company wasn’t the issue as other sites under that hosting account worked fine). So don’t really know what caused it but just happy it’s all working now.

    I had the same issue with a website. I was using a minification plugin. I had to exclude the JavaScript that loads the admin toolbar.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Top WordPress Admin Bar (Toolbar) Not Displaying’ is closed to new replies.