Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • pascalus89 Friend
    #164280

    Hello

    I ‘d like to include a link with an image in header.php.But i dont know what is the path to put in the link ?
    My image is in my local theme.

    <a href=”http://www.xxxxxxxxxxxxxxx” title=”Accesso al blog italiano”><img src=”/templates/ja_anion/local/themes/light-brown-accueil3emil/images/italy.gif” border=”0″ alt=”Accesso al blog italiano” width=”26″ height=”17″></a>

    Thank’s for your help

    Phill Moderator
    #392267

    Without knowing where the image is located exactly in your folder structure we have no way of working out the path for you.

    Maybe this article will help you work it out – http://www.boogiejack.com/server_paths.html

    pascalus89 Friend
    #392334

    Ok
    My image is in the templates folder :
    /templates/ja_anion/local/themes/light-brown-accueil3emil/images/italy.gif

    I hoped somenthing like that :

    <img src=”http://&lt;?php echo $_SERVER[“REQUEST_URI”]?>/templates/ja_anion/local/themes/light-brown-accueil3emil/images/italy.gif” >

    or another php function wich can give me the path of the URL before /templates/ja_anion/local/themes/light-brown-accueil3emil/images/italy.gif.
    Is there such a function ?

    Regards

    pascalus89 Friend
    #392335

    I have the solution :

    <? $myabsoluteurl=JURI::base(); ?>

    <img src=”<?php echo $myabsoluteurl?>/templates/ja_anion/local/themes/light-brown-accueil3emil/images/italy.gif”>

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  pascalus89 13 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum