Skip to content


Subversion checkout URL

You can clone with
Download ZIP
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...
commit 4d417d39a143cff9491dcd6fc3affd56813d176a 1 parent dff83f7
@gogodanny gogodanny authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  header.php
2  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.
Something went wrong with that request. Please try again.