Author Topic: TOP.PHP  (Read 2716 times)

0 Members and 1 Guest are viewing this topic.

Offline VE2BYW

  • Member
  • *
  • Posts: 9
TOP.PHP
« on: July 18, 2024, 03:46:17 PM »
How can i put an image on my website header ?

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9722
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: TOP.PHP
« Reply #1 on: July 18, 2024, 04:17:20 PM »
For the Saratoga template, a banner image can be added to header.php (not top.php) by changing
Quote
      <h1 class="headerTitle">
        <a href="index.php" title="Browse to homepage"><?php echo langtransstr($SITE['organ']); ?></a>
      </h1>   
to
Quote
      <h1 class="headerTitle">
        <a href="index.php" title="Browse to homepage">
            <img src="header.jpg" width="100%" alt="<?php echo langtransstr($SITE['organ']); ?>" />
        </a>
      </h1>   
where the image is named 'header.jpg' and it is sized to match the width of your template (800 px for narrow aspect)
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP