• Resolved itzik lesher

    (@triplebit2)


    I learn the process of converting html into WordPress theme.
    Problem is that in the html code, unless I modify from relative to full path of my images(and maybe other objects as well) they are not seen – only empty box.
    Here is the site root
    https://www.triplebit.com/wp3.5.1
    In the dashborad the WordPress address and the site address are correct.
    Can someone advice pleas?
    Regards
    Triplebit

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m not sure what your problem is. WordPress sites should always use absolute (full) urls for everything.

    Thread Starter itzik lesher

    (@triplebit2)

    Thanks
    Sorry if I was mis-understood, but I think that got my question according to you answer.
    Just to my knoledge(though I understand it shouldn’t be used), is there a way to use relative path – would it be by using template tags, dashboard or simple PHP code somewher or anything else?
    Regards
    Triplebit

    In template files, you can use <a href=" <?php echo get_template_directory_uri(); ?>/images/image.jpg"></a> or <a href=" <?php echo get_stylesheet_directory_uri(); ?>/images/image.jpg"></a>.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘full path of my images in php file’ is closed to new replies.