• Resolved beatsnbass

    (@beatsnbass)


    Hi, I’ve bene playing with this all day to no avail, please help!

    Everything is fine on the home page. The header shows, which is 2 images and an ad-banner.

    But when any of the other pages is clicked the images do not appear and their alt-text is displayed? Is this something to do with the image paths?

    If so please tell me which php file and section needs editing, I’m really struggling with this and I think it’s something simple I’m missing!

    Thanks

    my code for header.php is:

    <!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'); ?>" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title><?php if (is_home () ) { bloginfo('name'); } elseif ( is_category() ) { single_cat_title(); echo ' - ' ; bloginfo('name'); }
     elseif (is_single() ) { single_post_title(); }
     elseif (is_page() ) { bloginfo('name'); echo ': '; single_post_title(); }
     else { wp_title('',true); } ?></title>
    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/script.js"></script>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <!--[if IE 6]><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.ie6.css" type="text/css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.ie7.css" type="text/css" media="screen" /><![endif]-->
    <link rel="alternate" type="application/rss+xml" title="<?php printf(__('%s RSS Feed', 'kubrick'), get_bloginfo('name')); ?>" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="<?php printf(__('%s Atom Feed', 'kubrick'), get_bloginfo('name')); ?>" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_head(); ?>
    </head>
    <body>
        <div id="art-page-background-gradient"></div>
    <div id="art-main">
    <div class="art-Sheet">
        <div class="art-Sheet-tl"></div>
        <div class="art-Sheet-tr"></div>
        <div class="art-Sheet-bl"></div>
        <div class="art-Sheet-br"></div>
        <div class="art-Sheet-tc"></div>
        <div class="art-Sheet-bc"></div>
        <div class="art-Sheet-cl"></div>
        <div class="art-Sheet-cr"></div>
        <div class="art-Sheet-cc"></div>
        <div class="art-Sheet-body">
    <div class="art-nav">
    	<ul class="art-menu">
    		<?php art_menu_items(); ?>
    	</ul>
    </div>
    <div class="art-Header">
    <div class="combined">
         <div class="uplogo"><img src="wp-content/themes/uniplanet_final_mk4/images/uplogo.jpg" width="448" height="160" alt="uplogo" /></div>
      <div class="upad"><a href="https://www.ukresultsfestival.com"><img src="wp-content/themes/uniplanet_final_mk4/images/ukresultsbanner.jpg" alt="upad" width="475" height="70" border="0" /></a></div>
    </div>
    </div>
Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes, it looks like the path to your images is not quite right, if you insert the absolute url it should be all fixed. So for example find:

    <img src="wp-content/themes/uniplanet_final_mk4/images/uplogo.jpg" width="448" height="160" alt="uplogo" />

    and change it to:

    <img src="https://www.uniplanet.co.uk/wp-content/themes/uniplanet_final_mk4/images/uplogo.jpg" width="448" height="160" alt="uplogo" />

    Thread Starter beatsnbass

    (@beatsnbass)

    thank you for your help, I have actually found this thread below>
    https://www.ads-software.com/support/topic/250232?replies=3

    which helped me, using the same sort of method. I changed the images URL to my domain’s main image folder and all is well!

    thanks!

    Instead of typing the full path use the WP functions to build it… like you have further up in your file…
    <img src="<?php bloginfo('template_directory'); ?>/images/uplogo.jpg" width="448" height="160" alt="uplogo" />
    The page output should end up the same as crondeau posted above..

    Again here..
    <img src="wp-content/themes/uniplanet_final_mk4/images/ukresultsbanner.jpg" alt="upad" width="475" height="70" border="0" />
    ..change to..
    <img src="<?php bloginfo('template_directory'); ?>images/ukresultsbanner.jpg" alt="upad" width="475" height="70" border="0" />

    .. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Header Help! Pages don’t show header content?!’ is closed to new replies.