Only load CSS when required
-
Would you be able to wrap line 43 in the if-menu.php file in an if statement to only load if the peek option is checked?
if (get_option(‘if-menu-peak’)) {
add_action(‘wp_enqueue_scripts’, ‘If_Menu::addAssets’);
}
- The topic ‘Only load CSS when required’ is closed to new replies.