WordPress Development Asked by Hassan ALi on October 30, 2021
wp_register_script('moment', plugin_dir_url( __FILE__ )."js/moment.min.js", false, null, true);
wp_register_script('fullcalendar', plugin_dir_url( __FILE__ )."js/fullcalendar.min.js", false, null, true);
wp_enqueue_script('moment');
wp_enqueue_script('fullcalendar');
wp_register_style('fullcalendarcss', 'http://cdnjs.cloudflare.com/ajax/libs/fullcalendar/2.2.3/fullcalendar.min.css');
wp_register_style('fullcalendarprintcss', 'http://cdnjs.cloudflare.com/ajax/libs/fullcalendar/2.2.3/fullcalendar.print.css');
wp_enqueue_style( 'fullcalendarcss');
wp_enqueue_style( 'fullcalendarprintcss');
These files which i have registered in my plugin.this is my plugin page code .
jQuery(document).ready(function($) {
var calendar = jQuery('#calendar').fullCalendar({
editable: true,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
}
});
});
Now i am not getting any error nor getting my calendar at my page.
Answered by Ajay Malhotra on October 30, 2021
jQuery(document).ready(function($) {
var calendar = jQuery('#calendar').fullCalendar({
editable: true,
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
}
});
});
Now i am not gett
Answered by user76153 on October 30, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP