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

Does heavy theme and plugins affect server’s response time? [closed]

You’ve touched on a few things here, and there’s both the server and the frontend response time that you’re battling with. You might have issues with both. It’s worth noting firstly that PageSpeed (and the style recalcuating alert in the Chrome timeline) both deal with front-end aspects only – in slightly different ways though (another … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)