• Hello,

    I have always had this issue with the admin bar on my site. It works on the admin dashboard and on the home page of my site, but every other page it doesn’t display properly. It displays the text at the bottom of the page with no style.

    After consulting the oracle (google) I checked to ensure the admin bar setting was enabled for my user profile (though I knew it was because the bar was displaying just not properly). I also checked to ensure wp_head() and wp_footer() were in their correct places.

    I saw a post mentioning to check that admin-bar.min.css was being called, so I scoped out the source code from rendered pages of working and non-working. I found that the paths to a few stylesheets are being created incorrectly on the non-working pages. For some reason the path is including the page number in the URL and messing up some other portions of it.

    Home page example:

    <link rel='stylesheet' id='dashicons-css'  href='http://(site URL here)/wp-includes/css/dashicons.min.css?ver=4.0' type='text/css' media='all' />
    <link rel='stylesheet' id='admin-bar-css'  href='http://(site URL here)/wp-includes/css/admin-bar.min.css?ver=4.0' type='text/css' media='all' />
    <script type='text/javascript' src='http://(site URL here)/wp-includes/js/jquery/jquery.js?ver=1.11.1'></script>
    <script type='text/javascript' src='http://(site URL here)/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1'></script>

    Non-working pages (everything but home page):

    <link rel='stylesheet' id='dashicons-css'  href='http://(site URL here)/?page_id=124%2Fwp-includes%2Fcss%2Fdashicons.min.css&ver=4.0' type='text/css' media='all' />
    <link rel='stylesheet' id='admin-bar-css'  href='http://(site URL here)/?page_id=124%2Fwp-includes%2Fcss%2Fadmin-bar.min.css&ver=4.0' type='text/css' media='all' />
    <script type='text/javascript' src='http://(site URL here)/?page_id=124%2Fwp-includes%2Fjs%2Fjquery%2Fjquery.js&ver=1.11.1'></script>
    <script type='text/javascript' src='http://(site URL here)/?page_id=124%2Fwp-includes%2Fjs%2Fjquery%2Fjquery-migrate.min.js&ver=1.2.1'></script>

    I’m not sure where to look to troubleshoot this at this point. Any assistance would be greatly appreciated.

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘admin-bar.min.css being called incorrectly’ is closed to new replies.