WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Cry - Integrated URL into Logo / Banner (4 posts)

  1. cstina
    Member
    Posted 6 years ago #

    ::wipes tears::

    Here's the blog (culprit).

    All I'm trying to do is click-a-fy my Logo, to resolve to the main page. Simple right? Um, not really, because my header.php is being a bully and SO not playing nice with the Codex. Unlike most themes, there is no reference to my Logo image file in the header.

    The relative part of my style.css is here. There, you'll see the parameters of the Logo.

    How is the world can this be done?

  2. Eric Amundson
    Volunteer Moderator
    Posted 6 years ago #

    Ah cstina,

    Dry your tears. I think it's not that hard.

    In your header.php file (or in whatever file contains the following code), you have a link named top right after you masthead opens:

    <div id="wrapper"><a name="top"></a>

    I'd change it like so:

    <div id="wrapper"><a href="<?php bloginfo('url'); ?>" name="top">My Website Name</a>

    Then in your CSS, you'll need to do something like this:

    #wrapper {
    	margin:0 auto;
    	text-align:left;
    	width:920px;
    	padding-left:10px;
    	padding-right:10px;
    	position:relative;
    }
    
    #wrapper a[name="top"] {
    	display:block;
    	border:1px solid red;
    	width:330px;
    	height:85px;
    	position:absolute;
    	left:10px;
    	top:38px;
    	text-indent:-9999px;
    }

    Make sense?

  3. cstina
    Member
    Posted 6 years ago #

    !!:pounce:!! sewmyheadon

    Thank you soooooooooooooo much! That worked perfectly, so happy. You're fabulous =) Thank you, thank you, thank you!

  4. Eric Amundson
    Volunteer Moderator
    Posted 6 years ago #

    Aw, shucks. :)

    Glad it worked.

Topic Closed

This topic has been closed to new replies.

About this Topic