Was wracking my brain trying to figure out why the “Edit this page” and admin bar weren’t showing up at all on our site using WP-Andreas01. The call to edit_post_link() was in all the templates it was supposed to be, as well as calls to wp_head() (for the admin bar CSS) and wp_footer()(for the admin bar JavaScript). But neither the stylesheet nor the .js file were actually getting included when I looked at the page source. It worked on our testing side, but not production: same theme, same version of WordPress.
Turns out the problem in my case was that the “WordPress address (URL)” and “Site address (URL)” in General → Settings weren’t set to the same thing. Or at least setting them to the same thing (and probably invalidating some cookies in the process) made the admin bar and edit links appear as expected.


Discussion
Comments are closed.