• Resolved vexxatu

    (@vexxatu)


    Hey,

    I’m quite new to the WordPress comunity and even php and css.I installed recently a templete and i have a hard time adding a logo image in the header.php file or at least,there i figured it will go.I am sorry if this is a raw php question,i do not wish to bother anyway with extra questions besides WP,but i thought i give it a shot.

    tnx in advance

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter vexxatu

    (@vexxatu)

    ok..i tried many combinations…codes and such..which i found on the net..or on codex.wordpress.org…none worked..so please..can anyone help me?

    Post a link to the site in question.

    Thread Starter vexxatu

    (@vexxatu)

    http://www.filecluster.com and tnx again Yosemite for helping

    Thread Starter vexxatu

    (@vexxatu)

    i changed the h1 tag in the theme’s style.css as the following:

    h1 {
    font-size:18px;
    font-weight:normal;
    text-align:left;
    padding:10px 10px 10px 20px;
    margin:0px;
    color:#ffffff;
    background:#467aa7 url(‘images/logo2.jpg’) no-repeat left;;
    }

    Unfortunatelly,it takes only half of header to show the logo.I didn’t expected to fit or anything,i didn’t know the size of the theme’s header,but i’m lost..again πŸ™‚

    Depends on what you want to do with the image, but if it’s just a static image it’s probably easier to paste it into the css-file. Example:

    #headerimg {
    margin: 0;
    height: 200px;
    background-image: url(“bgimage.jpg”);
    width: 100%;
    }

    Thread Starter vexxatu

    (@vexxatu)

    ya..it’s a static image..ill try your tag now..tnx

    Thread Starter vexxatu

    (@vexxatu)

    ok..i tried it..it just multiplied my image all over the header πŸ™

    Thread Starter vexxatu

    (@vexxatu)

    ok..i added no repeat after background-image: url(“bgimage.jpg”) but it doesnt show my logo now..just the logo’s background

    Thread Starter vexxatu

    (@vexxatu)

    ok..im lost..please..any more advices

    You’re on the right track. But it’s hard to tell just what’s going on… Check out these errors:
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Ffilecluster.com%2F

    I see a lot of css errors too:
    * Line: 36 Context : a:link
    Invalid number : font too few values for the property font : bold

    * Line: 58 Context : a:active
    Invalid number : background Parse Error – #

    * Line: 350 Context : div.main h4
    Parse Error – #;

    * Line: 350 Context : div.main h4
    Parse error – Unrecognized : ;}

    * Line: 358 Context : div.main h4 a
    Invalid number : background Parse Error –

    * Line: 358 Context : div.main h4 a
    Parse Error – ;#bad1e8;

    * Line: 361
    Parse Error – : #4477aa;} div.main a

    * Line: 417 Context : div.navboxleft
    Invalid number : background Parse Error – :

    * Line: 417 Context : div.navboxleft
    Parse Error – #ebf0f6;

    * Line: 417 Context : div.navboxleft
    Parse error – Unrecognized : ;}

    * Line: 425 Context : div.navboxleft h5
    Invalid number : width Parse Error – %

    * Line: 431 Context : div.navboxleft ul
    Invalid number : list-style-type disk is not a list-style-type value : disk

    * Line: 509 Context : div.navboxright h5
    Invalid number : width Parse Error – %

    And when I look at it it appears the H1 does not have no-repeat left set in it. Are you sure you added it to the right style.css?

    I answered the image question in your OTHER thread.

    Thread Starter vexxatu

    (@vexxatu)

    sorry i made another thread..i just woke up..feeling dizzy..and all night i dreamed about the damn header πŸ™‚

    Thread Starter vexxatu

    (@vexxatu)

    Yose…those errors are in the theme’s style.css only?

    about the no repeat…i have removed it yestarday…this is how it look with no repeat http://www.filecluster.com

    EDITED QUICK* Read the link I posted in the OTHER thread, you might learn (OMG!!) some CSS while youre at it.

    Hahahaha..she is on a “roll” today lmao!!

    LMAO@whooami’s new profile link.. Hahaha..that’s some funny shnitz.. lol!

    spencerp

    thats because youre not placing it where it belongs. Read the link I posted in the OTHER thread, you might learn (OMG!!) some CSS while youre at it.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘logo in header.php or stylesheet?’ is closed to new replies.