Schedule An Appointment button not working
-
Hi ankit, i am using, Appointment Calendar,its relay awesome.but its not working for me why? can you please tell me.
-
Hi Varsha27,
what error occurred.
Hi abhishek,
no error was occured.while m trying to click on it. nothing was happens,i means usually,when i m click on it its should be popup with calender?? but its not for me?
Hi varsha27,
Plz send your site url,Thnaks
sorry,i can’t send you becoz its under construction mode π any guessing why its happen?
i think this is js conflict problem……
ohhh so whats the solution can you tell me. and one more thing its working fine on backed i mean on admin this button working fine.but its not working on fronted only.
Thanks
Varshaplz go to in your console and check
one another thing disable/deactivate your other theme and plugins that may be conflict
then try to testcool now i found the solution.. can u now plz tell while i am using normal short code or plugin such as [APCAL] then its not working fine for mo. device. but we have one more code for mobile [APCAL_MOBILE].
but the issue is how can i use 2 different for same page.i means i need to use both or not ?? becoz my site is Responsive,so we need for both mobile device and for desktop version too.
Sorry its not possible to use both short code in same page
Thnaks
ok, then how can this will work for mobile also.means how can i make this work for mobile device too. becoz we need this will work for both desktop and mobile device too.please help me asap. its very urgent.i m sure there should any solution for this becoz there is 2 short codes are given ??
Thanks
Varshayou have to create two different pages for both short code
for mobile and desktop
Thanksyes,but can u tell me how we can execute this for separately for mobile and desktop. and how its m means that page will be active for mo. and desktop
yes this is possible to access your site on both devices but you have to need code customization
if you are comfortable in code customization then i gives you instruction with code
Thanksyes sure. please give me instruction with code.asap.
Thanks
Varsha1. go to in your plugin directory and open appointment-calendar.php file
2. search comment // Including Calendar Short-Code Page
3 after this comment past all this code
//require_once(“appointment-calendar-shortcode.php”);
//require_once(“appointment-calendar-mobile.php”);add_shortcode( ‘APCAL_AUTO_DETECT’, ‘apcal_detect_device’ );
function apcal_detect_device(){if(wp_is_mobile()){ //This is mobile
// load required js css
short_code_detect();
include(“appointment-calendar-mobile.php”);
//Calling Calendar Mobile Shortcode function
appointment_calendar_shortcode_mobile();} else { //This is desktop system
// load required js css
short_code_detect();
include(“appointment-calendar-shortcode.php”);
//Calling Calendar Short-Code function
appointment_calendar_shortcode();
}
}4. go to in line number 131 or search function short_code_detect line
and replace all function with this function codefunction short_code_detect() {
global $wp_query;
$posts = $wp_query->posts;
$pattern = get_shortcode_regex();
foreach ($posts as $post){
if ( preg_match_all( ‘/’. $pattern .’/s’, $post->post_content, $matches )
&& array_key_exists( 2, $matches )
&& in_array( ‘APCAL_PC’, $matches[2] ) || in_array( ‘APCAL_MOBILE’, $matches[2] ) || in_array( ‘APCAL’, $matches[2] ) || in_array(‘APCAL_AUTO_DETECT’, $matches[2]) )
{
wp_register_script(
‘jquery-custom’,
plugins_url(‘menu-pages/fullcalendar-assets-new/js/jquery-ui-1.8.23.custom.min.js’, __FILE__),
array(‘jquery’),
true
);
//wp_register_script( ‘jquery-custom’, plugins_url(‘menu-pages/fullcalendar-assets-new/js/jquery-ui-1.8.23.custom.min.js’, __FILE__), array(‘jquery’), true);
wp_enqueue_script(‘full-calendar’,plugins_url(‘/menu-pages/fullcalendar-assets-new/js/fullcalendar.min.js’, __FILE__),array(‘jquery’,’jquery-custom’));
wp_enqueue_script(‘calendar’,plugins_url(‘calendar/calendar.js’, __FILE__));
wp_enqueue_script(‘moment-min’,plugins_url(‘calendar/moment.min.js’, __FILE__));
wp_enqueue_style(‘bootstrap-apcal’,plugins_url(‘/menu-pages/bootstrap-assets/css/bootstrap-apcal.css’, __FILE__));
wp_enqueue_style(‘fullcalendar-css’,plugins_url(‘/menu-pages/fullcalendar-assets-new/css/fullcalendar.css’, __FILE__));
wp_enqueue_style(‘datepicker-css’,plugins_url(‘/menu-pages/datepicker-assets/css/jquery-ui-1.8.23.custom.css’, __FILE__));
break;
}
}
}now you have to use this short code [APCAL_AUTO_DETECT] on your page
and you have to permission to access both devices with one shortcode
i think it will work for you
Thanks
The topic ‘Schedule An Appointment button not working’ is closed to new replies.