• Resolved rdsr

    (@rdsr)


    Hey i wanted to change my Header image so i decided to place my menu with hotspots as the header, so i could have a nice menu for my site.

    but the header simply wont show up? when i type text into the body it shows, but otherwise nothing. no image. odd cuz it worked the 1st time i did it.

    heres my header.php:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    
    <head profile="https://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <style type="text/css" media="screen">
    
    <?php
    // Checks to see whether it needs a sidebar or not
    if ( !empty($withcomments) && !is_single() ) {
    ?>
    	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/layout_menu_2-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
    <?php } else { // No sidebar ?>
    	#page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/layout_menu_2.jpg") repeat-y top; border: none; }
    <?php } ?>
    
    	#headerimg  {
      margin: 0px 0px 0;
      height: 100%;
      width: 100%; }
    
    </style>
    
    <?php wp_head(); ?>
    </head>
    <body>
    <div align="center" class="ad" style="border:none">
    <img src="images/layout_menu_2.jpg" width="960" height="111" usemap="#m_main_r1_c1" style="border: none ;"/></img>
    <map name="m_main_r1_c1" id="m_main_r1_c1">
    <area shape="rect" coords="24,13,229,54" href="main.html" alt="" />
    <area shape="rect" coords="24,59,230,98" href="wp/?page_id=85" alt="" />
    <area shape="rect" coords="731,59,936,98" href="wp/?page_id=90" alt="" />
    <area shape="rect" coords="498,59,703,98" href="forums.html" alt="" />
    <area shape="rect" coords="731,14,936,53" href="wp/?page_id=81" alt="" />
    <area shape="rect" coords="498,14,703,53" href="wp/?page_id=87" alt="" />
    <area shape="rect" coords="257,59,462,98" href="wp/?page_id=77" alt="" />
    <area shape="rect" coords="257,13,462,55" href="wp/?page_id=56" alt="" />
    </map>
    </div>
    </body>

Viewing 8 replies - 1 through 8 (of 8 total)
  • I believe the header image is located in the StyleSheet. Make sure it points to your new header image.

    I believe the header image is located in the StyleSheet. Make sure it points to your new header image.

    Thread Starter rdsr

    (@rdsr)

    I’m referring to adding a image to the body of the header.php. not a background image

    UPDATE: i see a little blue box where my image would be, i perposely left the border on to see if i could see it, it appears to be tiny on my page, and squashed. perhaps this is a structure issue?

    some help would be nice ??

    <img src=”images/layout_menu_2.jpg”
    That won’t work. Use absolute path.

    Thread Starter rdsr

    (@rdsr)

    :-/ nope that didnt work either..

    i have a sneak suspiscion something to do with my page structure.

    check it out, the blue box at the top should be where my menu is:

    this is link:

    https://www.AndreaMele.com/wp

    You can’t see it because it is not on the server – not where you say it is:
    https://www.andreamele.com/wp/images/layout_menu_2.jpg

    Thread Starter rdsr

    (@rdsr)

    ok so the path was wrong + had to be absolute! thank you for your time! seems to be fixed ?? !!

    Thread Starter rdsr

    (@rdsr)

    ok i think i figured it how, but instead of posting a new thread ill just ask here…

    How do i get my background image from my body to start right under the footer?

    currently it reads:

    /* Begin Typography & Colors */
    body {
    	font-size: 62.5%; /* Resets 1em to 10px */
    	font-family: 'Lucida Grande', Verdana, Arial, Sans-Serif;
    	background: #000000 url('images/layout_bg_2.jpg') top center no-repeat;
    	color: #fff;
    	text-align: center;
    	}

    its currently being overlapped by the footer.. should start right after it? is there another tag to use instead of “top” maybe something more specific?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘My Header wont show or show image’ is closed to new replies.