• Resolved Empirevaleting1

    (@empirevaleting1)


    I have changed my header from the template one, but now i want to put a image in the header again. but i take the file out via ftp and change it, but when i load it, it has not changed. can anyone help please as i would just like to ad a outline off a car under my company name in the header. url is https://www.mycarvaletingservices.co.uk and can i do it via header in WP editor?
    Thanks

Viewing 15 replies - 1 through 15 (of 35 total)
  • you should be able to edit the header.php file in the editor, yea.

    It looks like the image that you are trying to link to isnt on your site. Make sure that you ALSO upload the header.png image to the images folder in your theme directory ??

    Thread Starter Empirevaleting1

    (@empirevaleting1)

    Just uploaded the header.png to images, how do i put the image of the outline of the car on top of the header? and thanks for that, i did know they had to be in the image file. do i put it in the css and the header, as im puting it in css but not showing.

    there looks like there are a few css issues that i think might need changing:

    line 483: #access{

    delete the line that says
    margin-top:-180px;

    your header should appear correctly then

    Thread Starter Empirevaleting1

    (@empirevaleting1)

    Just tryed that but nothing happened, someone give me this code to put in the css so it will float over my the company name but not working.

    #header {
    background: url(“images/outline header.png”) no-repeat top left;
    height: 60px;
    }

    i can still see that you have the code that you need to delete present..

    please look for line 483 that looks like

    #access {
        background-image: url("images/navbg.jpg");
        display: block;
        height: 43px;
        margin-left: 32px;
        margin-top: -180px;
        position: relative;
        width: 980px;
        z-index: 3;
    }

    you need to REMOVE the section that says margin-top: -180px;

    Thread Starter Empirevaleting1

    (@empirevaleting1)

    I did but it didnt work so i put back in, but it is out now and still it hasnt changed anything. do i need to put a float on the image that i want on top of the company name image?

    I would also suggest the following:

    on line 256 that looks like:

    #header {
        background-image: url("images/header.png");
        background-repeat: no-repeat;
        height: 335px;
        margin-left: 30px;
        margin-top: 80px;
        position: relative;
        width: 100%;
        z-index: 0;
    }

    replacing margin-top: 80px; with padding-bottom: 80px;

    it also looks as if there is no content populating your <h1> tag.. you may need to look in your header.php for the section that says:

    <h1 id="site-title"><a href="<?php bloginfo('url'); ?>" title="" rel="home"></a></h1>

    and replace it with

    <h1 id="site-title"><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>" rel="home"><?php bloginfo('name'); ?></a></h1>

    if you are finding that changes arent appearing you may need to clear your cache..

    have a look HERE for how to do this on your browser

    Thread Starter Empirevaleting1

    (@empirevaleting1)

    Thanks for that, i cleared it and now it is showing. do i have to change the other codes you said, has now the company name as gone. and how can i get the car image in the middle of the header?

    Thread Starter Empirevaleting1

    (@empirevaleting1)

    i think it maybe because the company name is a image with a white BG and the outline of a car image as a white bg, could this be why they both dont show?

    And in my header file there is know h1 id,

    Thread Starter Empirevaleting1

    (@empirevaleting1)

    the only coding i found like that is this one

    <div id=”header”>
    <?php $heading_tag = ( is_home() || is_front_page() ) ? ‘h1’ : ‘div’; ?>
    <<?php echo $heading_tag; ?> id=”site-title”>

    ” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?>

    actually its because you are trying to set both images to the same div..

    outline_header.png and header.png need to be set to different areas..

    instead of the last thing i said to change to instead try this:
    <h1 id="site-title"><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>" rel="home"><img src="<?php bloginfo('template_url'); ?>/images/header.png" /></a></h1>

    then if you go to here: https://pastebin.com/SyhxQ5AE

    replace your entire styles.css with that code.. you should then have what youre after hopefully ??

    please use the

    `

    ‘s so that the code appears..

    Thread Starter Empirevaleting1

    (@empirevaleting1)

    but i havnt got a h1 div file like that one in my header file. is it the code that i just posted. and i get what you mean by the two headers, so do i have to put a _ on one?

    Thread Starter Empirevaleting1

    (@empirevaleting1)

    that code as taken the header out all thgther from the site

Viewing 15 replies - 1 through 15 (of 35 total)
  • The topic ‘Adding header’ is closed to new replies.