Skip to content

Worpress: Send logo link to home

If you installed wordpress in a subdirectory,
your logo might not link to your root home, it might still be linking to where the real folder of wordpress is installed.
you can easly edit this on yourtheme/header.php
Change this:

<pre><code><a href="<?php echo site_url(); ?>"><?php bloginfo('name'); ?></a></code></pre>

To This:

<pre><code><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></code></pre>
Read more from WordPress

Share your thoughts, post a comment.


Note: HTML is allowed. Your email address will never be published.

Subscribe to comments