WordPress.org

Support

Support » How-To and Troubleshooting » making the blog name an external link

making the blog name an external link

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

    http://www.mymarketingcompany.com/index.html

    I appreciate the help

Viewing 2 replies - 1 through 2 (of 2 total)
  • <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

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

    Thank you very much!!!!!!

    Florida Marketing Consultants

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘making the blog name an external link’ is closed to new replies.
Skip to toolbar