markjaquith / WordPress-Skeleton

Basic layout of a WordPress Git repository. I use this as a base when creating a new repo.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Admin bar won't appear on front-end

jruck opened this issue · comments

As long as I keep the site address as mydomain.com/wp, it appears. But once I change it to simply mydomain.com (and keep the WordPress Address as mydomain.com/wp), the Admin bar doesn't appear anymore on the front-end.

Themes that have a built-in gutter for when the admin bar should be displaying continue to show the gutter, just no admin bar. (See attached). I've tested this behavior in a copy of the Twenty Thirteen theme as well.

Anyone else getting this, or have any idea what might be going on?

screen shot 2013-12-10 at 5 53 45 am

Your theme is probably broken somewhere before wp_footer. Check your php errors and server error log.

Maybe, I'll go through and check again. But I tried it w/ the default Twenty Thirteen theme as well and still no admin bar.

If you view a page it is also /wp/page-example ?

Check your url settings in settings > general.

it probably has /wp at the end. Remove that and everything will work again like you expect.

Yeah that's what I'm talking about. When I remove the /wp so that all the
pages are just mydomain.com/page-example, the admin bar goes away. It's as
if there's some logic somewhere that needs to be told either where
WordPress is living, or where the themes are.

On Tuesday, December 10, 2013, Sebastiaan wrote:

If you view a page it is also /wp/page-example ?

Check your url settings in settings > general.

it probably has /wp at the end. Remove that and everything will work again
like you expect.


Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-30252411
.

_Justin Ruckman_jruck.us | @jruckman http://twitter.com/jruckman | 704
460 5906

I tried to recreate the problem on a fresh installation using WP Skeleton and cannot, so it's safe to assume the issue I was having is something specific to that site alone. When I figure out the problem, I'll post it here for reference.

@jruck Did you ever figure out why this was happening? I'm also running into the same issue.

This issue might happen when you forget to include wp_head() and wp_footer() but it's not relevant to this repo.

Nope, but I think it was an issue w/ the theme I was using at the time (Satellite). Subsequent themes have not had this issue.

I just tried this with the latest twentyfifteen theme and I'm still getting the same issue. It seems to start happening as soon as I update the Site Address URL to remove the '/wp/'.

capture

Hm, works for me on some themes, but apparently, like this, not others.

Ok, I just cleared by cache and logged-out and logged-in again.

It working fine now! :)