Okay
  Public Ticket #2860806
Single Page Template
Closed

Comments

  •  1
    jackpott started the conversation

    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:

    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;
    ?>

    <?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?

  •  877
    Zhivko replied

    Hi,

    Check out the attached example.


    Stachethemes Developer

  •  1
    jackpott replied

    Perfect, just what I was after. Thanks