Comments 1jackpott started the conversationAugust 30, 2021 at 5:04pmWhen creating a single page template the JS scripts aren't included when you have the following in the code as detailed in the articles about creating single page templates: add_action('wp_enqueue_scripts', function() { do_action('stec_single_load_styles'); do_action('stec_single_load_scripts'); });Only CSS files included.The custom page content is:<?php get_header(); global $content_width; $content_width = 1068;?> <?phpadd_action('wp_enqueue_scripts', function() { do_action('stec_single_load_styles'); do_action('stec_single_load_scripts');});?>In the page I'm not seeing any of the following JS which are in the default event template:js/front/helper.min.jsjs/front/stec-single.min.jsjs/db.min.jsjs/front/reminder.min.jsjs/front/rsvp.min.jsjs/libs/scroll.min.jsjs/front/share.min.jsDo you have any working examples of a custom single event page template? 877Zhivko repliedSeptember 3, 2021 at 1:11pmHi, Check out the attached example. Stachethemes Developer 1jackpott repliedSeptember 3, 2021 at 2:17pmPerfect, just what I was after. Thanks1 Like Sign in to reply ...
When creating a single page template the JS scripts aren't included when you have the following in the code as detailed in the articles about creating single page templates:
Only CSS files included.
The custom page content is:
<?php get_header();
global $content_width;
$content_width = 1068;
?>
<?php
add_action('wp_enqueue_scripts', function() {
do_action('stec_single_load_styles');
do_action('stec_single_load_scripts');
});
?>
In the page I'm not seeing any of the following JS which are in the default event template:
js/front/helper.min.js
js/front/stec-single.min.js
js/db.min.js
js/front/reminder.min.js
js/front/rsvp.min.js
js/libs/scroll.min.js
js/front/share.min.js
Do you have any working examples of a custom single event page template?
Hi,
Check out the attached example.
Stachethemes Developer
Perfect, just what I was after. Thanks