Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:29:10 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: image in div nav right only appears in home page  (Read 1273 times)
berta

Offline Offline

Posts: 11



WWW
« on: December 23, 2007, 07:24:55 PM »

I am a complete beginner to Wesitebaker. I started a site with Landzilla template, I only modifyed to be three columns and have a div named Nav rigth that includes links to news. I also have an image on the top of this section but the image only appears in the home page, actually, it only appears in the top page. I would like that image to appear in all pages, as the news on the nav right do. Can some one please tell me what I did wrong?  I really appreciate your comments.....Thanks, Berta
The code I have in the index page is the following:   

<div id="navi_right">
        <a target="_blank" href="http://www.yapikrediemeklilik.com">
<img width="200" vspace="0" height="335" src="images/logos-all200.jpg">
</a>
       
        <?php display_news_items(0, 5, 50, 2, "The latest news", "show full news text", "uups, no news available", false); ?>
      <?php page_content(2); ?>
     
      </div>
Logged

Berta
marathoner

Offline Offline

Posts: 495


« Reply #1 on: December 23, 2007, 09:37:46 PM »

Use an absolute path instead of a relative path to your image. I assume that your 'images' directory is a child of the template directory...if so then add the template directory as part of the full path...something like this:

Code:
<img width="200" vspace="0" height="335" src="<?php echo TEMPLATE_DIR?>/images/logos-all200.jpg">
Logged
berta

Offline Offline

Posts: 11



WWW
« Reply #2 on: December 24, 2007, 09:46:20 AM »

Thanks Marathoner!!
 I tried your code but I could not make it work with your php code, I do not know much php myself, so I followed your tip of making the absolute link just using html language and it works fine now.

Thanks again. Berta
Logged

Berta
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!