Mar
12-06-2006, 12:18 PM
I have some PHP code and I want to insert just a plain-jane image. I've been trying to add
<img src="images/header_top.gif" width="175" height="120" /> but when I reload the page, it's just a small empty square instead of the image. And I'm sure everything else I'm doing is right, been working on this for quite a while. This is the first time I haven't been able to insert some html into a PHP page. Here is the PHP, it's just a header file.
<div id="toptabs">
<p>
<a class="toptab" href="<?php bloginfo('rss2_url'); ?>">RSS</a><span class="hide"> | </span>
<a class="toptab" href="<?php bloginfo('comments_rss2_url'); ?>" title="Subscribe to Comments RSS feed">Comments RSS</a><span class="hide"> | </span>
<a class="toptab" href="<?php bloginfo('atom_url'); ?>" title="Subscribe to Atom feed">Atom</a></p>
</div>
<div id="container">
<!--
<div id="logo">
<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
</div>
-->
<br />
<div id="navitabs">
<h2 class="hide">Site menu:</h2>
<a class="navitab" href="<?php bloginfo('url'); ?>">Home</a><span class="hide"> | </span>
<a class="navitab" href="#">Link1</a><span class="hide"> | </span>
<a class="navitab" href="#">Link2</a><span class="hide"> | </span>
<a class="navitab" href="#">Link3</a><span class="hide"> | </span>
<a class="navitab" href="#">Link4</a>
<div id="desc">
<h2><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h2>
<p>You are currently viewing EXQUISITE Wordpress Theme. Basically it is a 2-column Elegant, Minimal, Business theme layout. The design is made with XHTML and CSS, and it has no tables.</p>
<p> Author of this theme is Kaushal Sheth who loves making WP & TXP Themes.</p>
<p class="right"><a href="#">Read more...</a></p>
</div>
I've tried adding it in 10 different places, nothing works. Same result everytime.
<img src="images/header_top.gif" width="175" height="120" /> but when I reload the page, it's just a small empty square instead of the image. And I'm sure everything else I'm doing is right, been working on this for quite a while. This is the first time I haven't been able to insert some html into a PHP page. Here is the PHP, it's just a header file.
<div id="toptabs">
<p>
<a class="toptab" href="<?php bloginfo('rss2_url'); ?>">RSS</a><span class="hide"> | </span>
<a class="toptab" href="<?php bloginfo('comments_rss2_url'); ?>" title="Subscribe to Comments RSS feed">Comments RSS</a><span class="hide"> | </span>
<a class="toptab" href="<?php bloginfo('atom_url'); ?>" title="Subscribe to Atom feed">Atom</a></p>
</div>
<div id="container">
<!--
<div id="logo">
<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
</div>
-->
<br />
<div id="navitabs">
<h2 class="hide">Site menu:</h2>
<a class="navitab" href="<?php bloginfo('url'); ?>">Home</a><span class="hide"> | </span>
<a class="navitab" href="#">Link1</a><span class="hide"> | </span>
<a class="navitab" href="#">Link2</a><span class="hide"> | </span>
<a class="navitab" href="#">Link3</a><span class="hide"> | </span>
<a class="navitab" href="#">Link4</a>
<div id="desc">
<h2><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h2>
<p>You are currently viewing EXQUISITE Wordpress Theme. Basically it is a 2-column Elegant, Minimal, Business theme layout. The design is made with XHTML and CSS, and it has no tables.</p>
<p> Author of this theme is Kaushal Sheth who loves making WP & TXP Themes.</p>
<p class="right"><a href="#">Read more...</a></p>
</div>
I've tried adding it in 10 different places, nothing works. Same result everytime.