Conditionally include files in functions.php?

Use WordPress’ conditional tags, global variables, defines, class checks and the like. For instance like so: <?php // load helper functions – always require_once get_stylesheet_directory() . ‘/inc/helper-functions.php’; // load admin functions – for back-end only if ( is_admin() ) require_once get_stylesheet_directory() . ‘/inc/admin-functions.php’; // load WooCommerce functions – when WooCommerce is active if ( in_array( … Read more

Site loading extremely slowly

Well I looked at the website using FireFox I hit F12 and went to the Network tab. Hit the refresh button within the tab. This is the result I got a bunch of your CSS and images are taking a really long time to load. https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor#Performance_analysis