I am manipulating an img element in functions.php using jQuery by changing the src attr on hover. How do I make so the absolute path works? Currently, when I view the image directly in the browser it brings me to 404 page. Relative path doesn't work either.
i always start every theme w/ some constants
` define('THEME', get_bloginfo('stylesheet_directory')); //or you could use this one: //define('THEME', get_stylesheet_directory_uri());
define('IMAGES', THEME . '/images'); `
and some others, but the point is that at any place in my code i can point to my theme's image folder