WordPress: 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:

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

To This:

<a class="brand" href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a>

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>