Page not found when trying to link to files in child theme directory

Shouldn’t you be enqueuing that in functions.php instead? function script_enqueueing() { wp_enqueue_script( ‘scripts’, get_stylesheet_directory_uri() . ‘/js/scripts.js’, array(‘jquery’) ); } add_action(‘wp_enqueue_scripts’, ‘script_enqueueing’); Edit to add: if calling directly in header.php, use get_template_directory_uri(); instead.

404 when Previewing an unsaved draft

Open the wp-config file and replace the line that reads define(‘WP_DEBUG’, false); with: if ( isset($_GET[‘debug’]) && $_GET[‘debug’] == ‘1’ ) { define(‘WP_DEBUG’, true); } elseif ( isset($_GET[‘debug’]) && $_GET[‘debug’] == ‘2’ ) { define(‘WP_DEBUG’, true); define(‘WP_DEBUG_DISPLAY’, true); } elseif ( isset($_GET[‘debug’]) && $_GET[‘debug’] == ‘3’ ) { define(‘WP_DEBUG’, true); define(‘WP_DEBUG_LOG’, true); } After adding … Read more

Failed to load resource:404 image

You have a rule in your .htaccess that prevents access to your images for anyone sending your domain as referer. Disable the referer on your site, and all images will show up. Remove that rule. To get this on topic: Whenever you have any problem where you don’t know how to debug it –disable all … Read more