WordPress.org

Ready to get started?Download WordPress

Forums

Admin bar not showing despite common fixes (21 posts)

  1. aprilrobin
    Member
    Posted 2 years ago #

    The problem doesn't seem to be my theme since the admin bar isn't showing using twentyten or twentyeleven.

    Regardless, checked the footer issue and...nope.

    Yes, I have the option set under users > Your profile. It will work within the dash, but I need it to show while viewing the site.

    Reinstalled wordpress... no fix. *sigh*

    Anyone have any guess what else it could be? This is hosted on Godaddy and I know Godaddy is not a favorite, but the admin bar is working fine on other sites I have hosted there.

    Thanks!
    April

  2. aprilrobin
    Member
    Posted 2 years ago #

    oh, to add....

    There is no blank space where the admin bar should be. There's simply no admin bar while viewing the site at all. It looks as if it has simply turned off, but it is not.

  3. aprilrobin
    Member
    Posted 2 years ago #

    oh geeze, what else will I forget?... I also deactivated all plugins, so that isn't the issue either.

  4. wyndom
    Member
    Posted 2 years ago #

    I am also experiencing this, I noticed it happened when made my WordPress address (URL) different from my Site address (URL). If I revert back to the default I can see the admin bar, if I make them different it disappears.

  5. Phil
    Member
    Posted 2 years ago #

    wyndom is on the right path. I also had this issue once, and by correcting the wordpress address and site address url's, you'll find it should fix the issue.

    This happens often when moving a copy of WordPress but it's an easy fix.

  6. wyndom
    Member
    Posted 2 years ago #

    So were you able to use different wordpress URL and site address?

  7. Phil
    Member
    Posted 2 years ago #

    Depending on your server, having a 'www' or not before the url makes a difference.

  8. wyndom
    Member
    Posted 2 years ago #

    yep, that did the trick. I'd really like to have just http://mysite.com instead of http://www.mysite.com is there a fix?

  9. Phil
    Member
    Posted 2 years ago #

    Of course.

    You can remove this via the .htaccess file in the root of your install:

    RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
       RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301]

    ...obviously change the domain to your own.

    Hope this helps.

    Phil

  10. wyndom
    Member
    Posted 2 years ago #

    I got a timed out error due to too many rewrites. bummer.

  11. playfield-media
    Member
    Posted 2 years ago #

    He guys I have read an article that it is best not to have all the files from wp in the root directory but instead in some sub directory with a cryptic name.
    This is due to security lacks from wp. Further you should put only the index file into the root and add the name from your sub directory into the following line of code from your index file:

    require('./your-sub-dir/wp-blog-header.php');

    So in this case it is impossible to have WordPress address and the site address the same.

    Now what can there be done to still get the admin bar.

    I would be really happy if one has an answer.

    Cheeeeeeeeers,

    Wiese

  12. esmi
    Forum Moderator
    Posted 2 years ago #

    @playfield-media: Please post a new topic instead of posting in a 3 month old topic that has nothing to do with your question.

  13. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    it is best not to have all the files from wp in the root directory but instead in some sub directory with a cryptic name.
    This is due to security lacks from wp

    If I may be blunt, that is complete garbage. The most obvious reason why, is that your theme, images, plugins, etc are all going to be in that crypicly named folder. Which means that the path to the folder is going to appear in plain text in your source code, which is viewable from any browser.

    Now I do run my index.php in root, and have my files in a folder. This is just to keep my root folder tidy, without all sorts of files in there. Also, my admin bar works perfectly with this setup

    @playfield-media - have you deactivated ALL plugins, and switched to twentyeleven theme to test if your admin bar comes back?

  14. playfield-media
    Member
    Posted 2 years ago #

    thx for the quick reply.... I have done all over again and now it's fine :-)

  15. DivaVocals
    Member
    Posted 2 years ago #

    Okay getting back to the ORIGINAL TOPIC.. I too am having issues with an older theme on a site I just upgraded to 3.3.1. The theme did not support widgets or menus. I have since added code so that now both widgets and menus are supported.. I have made sure that wp_head() and <?php get_footer(); ?> are in my theme files.. The daggone admin bar REFUSES to show up!!!! Help!!!

  16. esmi
    Forum Moderator
    Posted 2 years ago #

    Try adding <?php wp_footer(); ?> to your theme's footer.php template file.

  17. DivaVocals
    Member
    Posted 2 years ago #

    Thanks.. THAT finally did it!!

    Can you answer a question for me.. I used a theme that I KNEW the admin bar worked with as my guide.. it does NOT have <?php wp_footer(); ?> in the footer.php file.. Why would that theme work with the admin bar, and this one did not until I added it??

    ETA: Nevermind.. I found the answer.. wp_footer() was BURIED in a string of function calls in that theme..

    Carry on.. and thanks!!!

  18. esmi
    Forum Moderator
    Posted 2 years ago #

    No problem :-)

  19. gmonk
    Member
    Posted 2 years ago #

    Why did doing that work? I've had a poopy time trying to figure that out. Why do you not have to add wp_sidebar(); or wp_header();? Just wondering...

  20. DivaVocals
    Member
    Posted 2 years ago #

    Because the calls for the admin bar require all of these functions to be present to work..

  21. gmonk
    Member
    Posted 2 years ago #

    I figured that out that just after I posted that reply, lol. Thanks tho :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags