Comments 1jreit started the conversationJuly 27, 2022 at 8:22amDear Stachethemes Support, I have added the following code to functions.php but the Font-Awesome icons do not show up: add_action("wp_enqueue_scripts", function() { if (class_exists('StachethemesStecStachethemes_Event_Calendar')) { global $post; $stec = StachethemesStecStachethemes_Event_Calendar::get_instance(); if ($post->post_type === 'stec_event' || $stec->scripts_are_forced() === true || (is_a($post, 'WP_Post') && has_shortcode($post->post_content, 'stachethemes_ec'))) { $stec->add_asset_js("stec-fa-5-compat", "js/front/fa-back-compat.js"); } } }); add_action("wp_enqueue_scripts", function() { if (class_exists('StachethemesStecStachethemes_Event_Calendar')) { global $post; $stec = StachethemesStecStachethemes_Event_Calendar::get_instance(); if ($post->post_type === 'stec_event' || $stec->scripts_are_forced() === true || (is_a($post, 'WP_Post') && has_shortcode($post->post_content, 'stachethemes_ec'))) { $stec->add_asset_js("stec-fa-5-compat", "js/front/fa-back-compat.js"); } } }); With kind regards, Ross Sign in to reply ...
Dear Stachethemes Support,
I have added the following code to functions.php but the Font-Awesome icons do not show up:
add_action("wp_enqueue_scripts", function() { if (class_exists('StachethemesStecStachethemes_Event_Calendar')) { global $post; $stec = StachethemesStecStachethemes_Event_Calendar::get_instance(); if ($post->post_type === 'stec_event' || $stec->scripts_are_forced() === true || (is_a($post, 'WP_Post') && has_shortcode($post->post_content, 'stachethemes_ec'))) { $stec->add_asset_js("stec-fa-5-compat", "js/front/fa-back-compat.js"); } } });
With kind regards,
Ross