making the blog name an external link (3 posts)

  1. royhunters
    Posted 6 years ago #

    I am sure this is an easy one but I just cant seem to get the code right. My blog description in the header is a link to the home page of the blog. I want to make it a link to the index page of my website that hosts the blog.

    Here is the code I have:

    <div id="top"><h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1><p id="blog-desc"><?php bloginfo('description'); ?></p></div>

    The blog info "name" is what I want to link to this URL:


    I appreciate the help

  2. Adam Harley (Kawauso)
    Posted 6 years ago #

    <div id="top"><h1><a href="http://www.mymarketingcompany.com/index.html"><?php bloginfo('name'); ?></a></h1><p id="blog-desc"><?php bloginfo('description'); ?></p></div>

    <?php echo get_option('home'); ?> is just a call to put in the URL for the blog, so it can be changed to any other URL

  3. royhunters
    Posted 6 years ago #

    I see what I did wrong!!! LOL Thanks, you are fantastic!!!!! Works great!

    Thank you very much!!!!!!

    Florida Marketing Consultants

Topic Closed

This topic has been closed to new replies.

About this Topic