Browse files

Dynamic path for header logo

The current link will not work if you have pears installed in a sub-folder in custom domain.

The fix is using standard wp veritable to define the path.

Signed-off-by: Danny Chang <>
  • Loading branch information...
1 parent dff83f7 commit 4d417d39a143cff9491dcd6fc3affd56813d176a @gogodanny gogodanny committed Feb 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 header.php
@@ -24,7 +24,7 @@
<body <?php body_class(); ?>>
<header role="banner" class="group">
- <a href="/" id="logo">
+ <a href="<?php bloginfo('siteurl'); ?>/" id="logo">
Pears <em>are common patterns of markup &amp; style</em>

1 comment on commit 4d417d3

I would suggest to use site_url() tag and other *_url()/*_uri() template tags instead of bloginfo equivalents. In this case you should use home_url(), because site url is where WordPress installed and some times it's different from home url.

Please sign in to comment.