Ready to get started?Download WordPress


[resolved] Header only showing up on homepage (7 posts)

  1. girlswishlist
    Posted 3 years ago #

  2. girlswishlist
    Posted 3 years ago #

    Oops forgot to close the link - complete novice! Here's my site

  3. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Check that your theme's page.php and single.php template files both include calls to get_header().

  4. girlswishlist
    Posted 3 years ago #

    Thanks esmi but yes they both have <?php get_header(); ?>

    Here's the header.php incase there's something wrong in that?

    tml xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

    <head profile="http://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() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

    <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'); ?>" />
    <?php wp_head(); ?>
    <div id="page">
    <div id="header">
    <div id=”headerimage”><img border="0" src="wp-content/themes/theme4/images/header.jpg" /></div>
    <h1>/"><?php bloginfo('name'); ?></h1>
    <div class="description"><?php bloginfo('description'); ?></div>
    <hr />

  5. iridiax
    Posted 3 years ago #

    I don't know if it's the source of the problem, but you have fancy quotes (real code killers) in your header image code. They are the ones surrounding headerimage:

    <div id=”headerimage”><a href="http://girlswishlist.co.uk"><img border="0" src="wp-content/themes/theme4/images/header.jpg" /></a></div>

    Replace them with regular keyboard double quotes.

    Fancy quotes can be accidentally acquired when copy and pasting or by using the wrong text editor (like MS Word).

  6. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    try to use an absolute file path to the header image:

    <img src="http://girlswishlist.co.uk/wp-content/themes/theme4/images/header.jpg" border="0">


    <img src="<?php bloginfo('template_url'); ?>/images/header.jpg" border="0">

  7. girlswishlist
    Posted 3 years ago #

    Thank you so much!! I changed the quote marks iridiax and also used the absolute file path you suggested alcymyth and hooray the issue is resolved - I now have headers on every page and not just the homepage!

    I really really appreciate the help and hope 1 day to be a WordPress pro like you guys!!

Topic Closed

This topic has been closed to new replies.

About this Topic