WordPress website dont load CSS, JS and images

Since the problem is not easily duplicated, it could be response times of your hosting place. It could also be some external javascript code required by theme or plugin not loading properly due to timeouts. You could try to see what element is causing the problem by using the Network tab of the Code Inspector … Read more

404 on CSS and JS only on Homepage

There is an extra ‘x’ in the url on the home page for assets: https://onemoresong.com.au/wp-content/themes/themify-ultrax/themify/css/themify.common.min.css?ver=4.9.9 Remove the ‘x’ from themify-ultrax and your assets load: https://onemoresong.com.au/wp-content/themes/themify-ultra/themify/css/themify.common.min.css?ver=4.9.9 Check your home template to make sure you didn’t accidentally type x there or in your enqueueing of assets. Lastly check our database for this incorrect naming of the theme … Read more

How to convert multisite subdomain from http to https

I like a simple, all-purpose htaccess to enable https on all site requests: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] In addition, go into Network Admin, Sites, then Edit each site, then the Settings tab for each site. Change all occurences of http to https for your site. (Some plugins may have the … Read more

Unable to declare AOS library in functions

The function get_template_directory_uri() returns the path without trailing slash. So you need to write wp_register_script( ‘aosjs’, get_template_directory_uri() . ‘/js/aos.js’,…) Note the slash before “https://wordpress.stackexchange.com/questions/328563/js/aos.js”. What good for is this line, the script file should already be loaded: <script src=”https://wordpress.stackexchange.com/questions/328563/js/aos.js”></script>