$filecs=get_stylesheet_directory_uri().'/css/lucilevi.css';
$filejs=get_stylesheet_directory_uri().'/js/lucilevi.js';
if (file_exists($filecs)) {
echo "CS found";
} else{
echo "CS not found";
}
if (file_exists($filejs)) {
echo "JS found";
} else{
echo "JS not found";
}
Although the path for directory is correct it returns false. Can Anyone explain why this happen? I am new to PHP and Wordpress. Thanks.