Help wiht adding to a WordPress page


I’ve been trying to add this calendar to my wordpress page. And I’ve followed the documentation, but it’s still not showing up. This is what I’ve done.

I first added this to my child theme functions file:

function fullcalendar_jquery_enqueue() {
    wp_register_script('fullcalendar', "", false, null, true);
add_action("wp_enqueue_scripts", "fullcalendar_jquery_enqueue", 11);

function load_styles() {
    wp_register_style('fullcalendarcss', '');
    wp_register_style('fullcalendarprintcss', '');
    wp_enqueue_style( 'fullcalendarcss');
    wp_enqueue_style( 'fullcalendarprintcss');
add_action('wp_print_styles', 'load_styles');

Then I added this JS to my custom.js file:

jQuery(document).ready(function ($) {
    var calendar = jQuery('#calendar').fullCalendar({
        editable: true,

And then I added <div id='calendar'></div> to one of my pages, but the calendar is not showing up. In the console, it’s showing “Uncaught TypeError”.

Can someone please take a look and let me know what I might be doing wrong? Thank you!

, , hemoglobin 5 years 2018-08-08T05:58:29-05:00 0 Answers 102 views 0

Leave an answer