WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Clickable Logo (different URL) in Header + Keep Sitename (6 posts)

  1. samluc
    Member
    Posted 3 years ago #

    Hi,

    I have found many posts telling me how to replace header site name with logo that clicks back to homepage but what I would like to do is:

    Add a small logo in header which is clickable to different website URL AND also keep the current site name in Header.

    In addition my Tagline doesnt seem to be showing up.

    I am using the Thesis (17) Theme

    Any help would be much appreciated.

    Thank you

    Sam

  2. Screaming-Violet
    Member
    Posted 3 years ago #

    you need to edit the header.php file of your template to add the logo and the link.

    (apologies if you know html already) by adding the right locations to this code

    <a href="http://site you wish to link to"><img src="http://location of the logo you want to show up"></a>

    you will need to place this in the same header div, but you may need to alter the css to position in correctly - sorry I don't have acess to the thesis theme to give you the exact code you need

  3. samluc
    Member
    Posted 3 years ago #

    Thanks for the quick response - Ill give it a go.

    And, no apologies needed I dont know HTML very well

    Any ideas on why the tagline doesnt show up.

    Sam

  4. samluc
    Member
    Posted 3 years ago #

    What I did:
    I got the above code > converted it to PHP (yellowpipe website) > inserted that into thesis using thesis/openhook/Header/Tick Execute PHP.
    Result:
    Logo in header & Clickable to different website. Vhappy
    but the site name is under logo now (no longer to right)
    And Tagline still missing.

    Checkout the site here tankremoval.com.au

    Almost there - What am i missing

    Thanks again

  5. samluc
    Member
    Posted 3 years ago #

    I know why the Tagline is not showing

    I installed Plugin - Tagline Rotator which overides the tagline in General settings function. When you add a tagline to that plugin it wil show up.

    Still working on the header sitename to appear on the right of the logo rather than below it??

  6. samluc
    Member
    Posted 3 years ago #

    Final Solution - Clickable Logo (different URL) in Header + Keep Sitename

    Insert following into Header.php

    <?php
    echo "<a href=\"http://<strong>site you wish to link to</strong>\"><img src=\"http://<strong>location of the logo you want to show up</strong>\" alt=\"Alternate Text Here\" width=\"<strong>127</strong>\" height=\"<strong>100</strong>\" hspace=\"5\" vspace=\"5\" align=\"left\" border=\"0\" />\n";
    ?>

    Add CSS to move placement up or down

    .custom #header { padding-top: 10px; }
    .custom #header { padding-bottom: 45px; }

Topic Closed

This topic has been closed to new replies.

About this Topic