Core Themes & Design  :: 
Relative URL in themes?
 Top

  • How do I get a more relative URL to work in my themes?

    right now I can only reference an img in my images folder like this

    Code

    <img src="themes/DesRat/images/storybox-content-right-px1.gif">


    I'd like to be able to just have

    Code

    <img src="/images/storybox-content-right-px1.gif">


    So I (or someone else using my theme) can change the theme/folder name without there being any problems.

    I've seen a ._WHERE_IS_PERSO. used somewhere similarly but I don't know how to do it.

    Help PLease?
  • What theme engine are you using?

    --
    Regards,
    Simon

    itbegins.co.uk - Zikula Consulting

    Please read the Support Guide
  • I'm not using one.

    My old site theme took a dive when I upgraded to .750, I paid to have it converted to xanthia and still ran into problems, I installed security fix 2 and had even bigger problems

    sooooo in the last 3 days I've been learning PHP and made drastic advancements in what I know
    I've been coding it to work like extralite so it doesn't need a theme engine (then once everything works the way I want it to I'll convert it to xanthia)

    right now everything works great except I just would like relative urls as mentioned above

    thanks

    --
    www.DesRat.com
This list is based on the users active over the last 60 minutes.