• Hello,

    I have researched this and come up how to do this on several themes but I don’t know how to make the Blog Title a link to the site root on the SPORTY WP theme.

    See make a blog title a link

    In the header.php in my theme Sporty WP, I see the get_bloginfo(‘name’); command but I don’t know how to write the php to make it so it gets the blog name and links it to the site url. Here is the code…

    <?php } ?>
            <!-- HEADER -->
            <header id="header">
                <div class="logo">
                    <?php $headerimage = get_header_image(); ?>
                    <?php $headertext = get_bloginfo('name'); ?>
                    <?php $headerhide = get_option('sporty_headerhide'); ?>
                    <?php echo '<img src="' . $headerimage . '" alt="' . $headertext . '" />'; ?>
                    <?php if ($headerhide != "true") { ?>
                    <span><?php echo $headertext; ?></span>
                    <?php } ?>
                </div>
            </header>

    I know that I have to change the $headertext command to something like…

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

    but I don’t know how to do it. Any help would be greatly appreciated.

    Thanks

    Netivity

  • The topic ‘Make Blog title a Link on Child Theme’ is closed to new replies.