Error failed to load resource al crear un child theme en WordPress
-
Hi everyone:
I am creating a child theme of a WordPress theme and the web that is displayed when I have the child activated does not have all the elements of the parent theme.
I indicate below the incidents and steps that I have followed:
1 – With the Chrome Inspector I have been reviewing the web code that is generated with this Child Theme and the following errors are shown (when I have the parent theme activated, these errors do not occur):
/home/seedmusi/public_html/wp-content/themes/MusicTheme- child/css/bootstrap.min.css?ver=4.9.4 Failed to load resource: the server responded with a status of 404 (Not Found) /home/seedmusi/public_html/wp-content/themes/MusicTheme-child/theme- style.css?ver=4.9.4 Failed to load resource: the server responded with a status of 404 (Not Found) /home/seedmusi/public_html/wp-content/themes/MusicTheme- child/css/component.css?ver=4.9.4 Failed to load resource: the server responded with a status of 404 (Not Found) /home/seedmusi/public_html/wp-content/themes/MusicTheme- child/css/admin_style.css?ver=4.9.4 Failed to load resource: the server responded with a status of 404 (Not Found) /home/seedmusi/public_html/wp-content/themes/MusicTheme- child/css/colors.css?ver=4.9.4 Failed to load resource: the server responded with a status of 404 (Not Found) /home/seedmusi/public_html/wp-content/themes/MusicTheme-child/css/ie.css? ver=4.9.4 Failed to load resource: the server responded with a status of 404 (Not Found) /wp-content/themes/MusicThemehttps:/maxcdn.bootstrapcdn.com/font- awesome/4.5.0/css/font-awesome.min.css?ver=4.9.4 Failed to load resource: the server responded with a status of 404 (Not Found) /home/seedmusi/public_html/wp-content/themes/MusicTheme- childhttps:/maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font- awesome.min.css?ver=4.9.4 Failed to load resource: the server responded with a status of 404 (Not Found) jquery-migrate.min.js?ver=1.4.1:2 JQMIGRATE: Migrate is installed, version 1.4.1 classie.js Failed to load resource: the server responded with a status of 404 (Not Found) bootstrap.min.js Failed to load resource: the server responded with a status of 404 (Not Found) masonry.pkgd.js Failed to load resource: the server responded with a status of 404 (Not Found) jquery.prettyPhoto.min.js Failed to load resource: the server responded with a status of 404 (Not Found) custom-scripts.js Failed to load resource: the server responded with a status of 404 (Not Found) cbpScroller.js Failed to load resource: the server responded with a status of 404 (Not Found) classie.js Failed to load resource: the server responded with a status of 404 (Not Found) cbpScroller.js Failed to load resource: the server responded with a status of 404 (Not Found) custom-scripts.js Failed to load resource: the server responded with a status of 404 (Not Found) masonry.pkgd.js Failed to load resource: the server responded with a status of 404 (Not Found) jquery.prettyPhoto.min.js Failed to load resource: the server responded with a status of 404 (Not Found) (index):577 Uncaught ReferenceError: cbpScroller is not defined at (index):577 (index):479 Uncaught TypeError: jQuery(...).masonry is not a function at (index):479 at dispatch (jquery.js?ver=1.12.4:3) at r.handle (jquery.js?ver=1.12.4:3) theme-style.css Failed to load resource: the server responded with a status of 404 (Not Found) bootstrap.min.css Failed to load resource: the server responded with a status of 404 (Not Found) admin_style.css Failed to load resource: the server responded with a status of 404 (Not Found) component.css Failed to load resource: the server responded with a status of 404 (Not Found) ie.css Failed to load resource: the server responded with a status of 404 (Not Found) colors.css Failed to load resource: the server responded with a status of 404 (Not Found) font-awesome.min.css Failed to load resource: the server responded with a status of 404 (Not Found) font-awesome.min.css Failed to load resource: the server responded with a status of 404 (Not Found)
2 – Searching the Internet, I have seen forums where it is said that one of the reasons for these errors could be the permissions (reading, writing, execution and permission). I have done several tests leaving them marked in 0644,0755 or 0777, but the errors continue.
3 – In the functions.php file that I created in the Child theme, I enqueued the css files through wp_enqueue function. I put the css files, into the folders of the Child theme’s folder named as in the parent. In the parent theme, there are also js files, but I have not enqueurd them in the functions.php file (of the child theme) nor I have created files with the same name in the child. As some of the errors shown in section 1 above refer to js files, could this be the reason? although there are also errors of css files and these if I have them incoporated in Child theme.
Thanks
- The topic ‘Error failed to load resource al crear un child theme en WordPress’ is closed to new replies.