treehouse : what would you like to learn today?
Web Design Web Development iOS Development

image won't load and jquery

  • I have a few images in my wordpress theme that are just links like this, images/image_01.png but when I check the theme it doesn't show up. What is the problem? is there another way of linking to the images folder to get that image?

    I'm testing it out on localhost using xampp

    also the anything slider I have setup(not the wordpress version) isn't showing up. do I have to have jquery installed on my localhost also for it to show up?
  • The images are in the themes image folder ? if so you have to set the path to
    wp-content/themes/THEME_FOLDER/images/image_01.png

    If you want to get the theme path in your template(eg. index.php) use
    <img src="<?php bloginfo('stylesheet_directory'); ?>/images/image_01.png"  alt="some image" />


    this might be the same issue why your script can't be found ?
  • yes that's better, I knew it was something bloginfo but wasn't sure how it would be setup. Thanks for the help.

    Anyone know the problem with the jquery not working?