WordPress.org

Ready to get started?Download WordPress

Forums

logo link to homepage (3 posts)

  1. Blikes
    Member
    Posted 3 years ago #

    Hi, i'm wondering is there a way to have my logo link to my homepage?
    the theme didn't come with a logo so i added one using a widget in that place (there is no header.php)using the code:
    <a href="thinktoast.net"><img src="http://thinktoast.net/wp-content/uploads/2011/07/logotoast.png" /></a>

    When i click the logo from any page, for this example the homepage, i get
    http://thinktoast.net/thinktoast.net

    Any help would be greatly appreciated.

  2. futurepocket
    Member
    Posted 3 years ago #

    I'm confused... how did you add it using a widget? Because you added the code within a widget, its linking within the main domain. Try adding http://www. after the <a href=" not sure if it will work but its worth a shot. There must be something pulling information for the header (if there is no header.php), how else is your theme managing to create a header?

  3. blog596
    Member
    Posted 3 years ago #

    or you can also try
    <a href="<?php echo get_option('home'); ?>"/><img src="http://thinktoast.net/wp-content/uploads/2011/07/logotoast.png" /></a>

    see if that works let us know ... goodluck

Topic Closed

This topic has been closed to new replies.

About this Topic