• MrBrownUK

    (@mrbrownuk)


    I’ve inserted an image in header.php but it will not display and I cannot locate any CSS that may cause this to happen.

    <body <?php body_class(); ?>>
    
    	<div id="page" class="hfeed site">
    		<header id="masthead" class="site-header" role="banner">
    
              <img src="images/APC-Overnight-Shrewsbury-Logo.jpg" width="175" height="164" alt="APC Overnight Shrewsbury Logo" class="headerLogo">
    
              <a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    		  <h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
    				<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    		  </a>
    
    		  <div id="navbar" class="navbar">
    			<nav id="site-navigation" class="navigation main-navigation" role="navigation">
    					<h3 class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></h3>
    					<a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a>
    					<?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
    					<?php get_search_form(); ?>
    
    			</nav><!-- #site-navigation -->
    		  </div><!-- #navbar -->
    </header><!-- #masthead -->
Viewing 6 replies - 1 through 6 (of 6 total)
  • Alex Hodge

    (@alex-hodge)

    Try removing the class
    class="headerLogo"

    Let me no how it goes!

    Thread Starter MrBrownUK

    (@mrbrownuk)

    Hi Alex,

    It makes no difference, I have also disabled CSS from within Firefox and it continues to only display the alt tag data.

    I’m still digging around!

    Alex Hodge

    (@alex-hodge)

    what theme are you using?

    Alex Hodge

    (@alex-hodge)

    If you are using twenty thirteen you can go to Appearance > Header in your wordpress
    dashboard then insert your header image there?

    Thread Starter MrBrownUK

    (@mrbrownuk)

    TwentyThirteen

    I’m trying to include the logo with absolute positioning on top of the background.

    manojrohtela

    (@manojrohtela)

    <?php bloginfo(‘template_directory’); ?>/images/APC-Overnight-Shrewsbury-Logo.jpg

    use this as img src

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Image not displaying in header.php’ is closed to new replies.