1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Linking site logo. Noobie question

Discussion in 'HTML & Website Design' started by pictureboarduk, Feb 18, 2009.

  1. #1
    Hi,

    I use an external CSS file to style my site, and on every page in the site I have a logo at the top.

    I want to link the logo to the site's homepage, but am wondering if I have to manually add the link to each page, or can I create this link in one location and have it propagate throughout the site?

    I'm unsure of whats best/standard practice for this.

    The reason I am thinking this is because it's cool how the CSS is controlled in one location, yet this is not.

    Many thanks to anyone who can help.

    Thanks.
     
    pictureboarduk, Feb 18, 2009 IP
  2. Astroman

    Astroman Well-Known Member

    Messages:
    2,355
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Yeah, you want to use PHP and includes - i.e. a header.php, footer.php - your logo would be in the header.php and all your content pages would have <?php include ('header.php');?> at the top, so you only need to change the header.php to alter the entire site right away.
     
    Astroman, Feb 18, 2009 IP
    pictureboarduk likes this.