Strange result of get_stylesheet_directory()

Backslash is the default used on Windows OS to define paths. The foward slash is the default in Apache’s config on Xampp (at least it always have benn like that on mine). Since Windows accept both, you have a mix of them. But that won’t do any harm to your WordPress project. And it will … Read more

How do I dequeue a Stylesheet, stored in an ‘Assets’ folder?

Two things you need to: Hook into wp_enqueue_scripts with a priority later than the parent theme’s. The default is 10 so that’s a good assumption. If 11 doesn’t work, check the parent theme’s source to see which priority it’s hooked at. Use wp_dequeue_style() to do the dequeueing. That will look like: function wpse_293836_dequeue_parent_styles(){ wp_dequeue_style( ‘theme-skin-color’ … Read more

DISABLE wordpress upgrade page

You can actually do this on the web host without actually any PHP code. Using the same procedure as is recommended to deny access to wp-config.php, you can also deny access to upgrade.php. All you need to do is create a file named .htaccess in wp-admin and put the following in it: <files upgrade.php> order … Read more