Hello.
All these scripts are required for the Booking Calendar.
If you want to disable the loading of these files for the pages, where you are do not have the booking calendar inserted, so you will be need to make a small trick.
Let say that you are have the booking form at the page like this:
http://www.server.com/reserve/
So for disabling loading of the scripts and styles of Booking Calendar at any pages except that one you are need to make this customization.
Please open this file: ../booking/lib/wpdev-booking-class.php file
find this code:
function print_js_css($is_admin =1 ) {
and replace it to this code:
function print_js_css($is_admin =1 ) {
if ( (! $_SERVER['REQUEST_URI'] == '/reserve/') ) {
return;
}
thx for the fast answer.
I installed it, checked it with a print screen to be sure of the output, but all pages still have the booking sc. & sty. on their page.
Could it be because I’m using the calender as a widget?
Hello.
Can you send the link to the page with the booking form?
Also, what exactly modification do you made?
Kind regards.
Hi,
This is my page:
http://www.fermeduchateau.be/vrije-periodes/
The calader is on the left side as a widget.
I changed the wpdev-booking-class.php
function print_js_css($is_admin =1 ) {
if ( (! $_SERVER[‘REQUEST_URI’] == ‘/vrije-periodes/’) ) {
return;
}
the page next to it contains reviews from people who visit us.
On that page the booking code is also visible
http://www.fermeduchateau.be/gastenboek/
ps: this could be a standard feature, it would be a big plus vs other calanders.
Hello again.
Probably the issue is belong to some additional slash or some other symbol.
Please try to make this modification:
function print_js_css($is_admin =1 ) {
debuge( $_SERVER['REQUEST_URI']);
if ( (! $_SERVER['REQUEST_URI'] == '/vrije-periodes/') ) {
return;
}
So at the header you will see the exact value of the $_SERVER[‘REQUEST_URI’] variable, which you are need to insert in place of ‘/vrije-periodes/’ . Of course you are need to open this page: http://www.fermeduchateau.be/vrije-periodes/
P.S. We will add some similar functionality to the settings in the future updates.
I know what you mean, but I already tested it with a print statement.
I will wait for you to put in the code.
I did move it up in the script for testing and it worked, but allong came the errors also.
Hello.
What type of errors you was saw ?
Kind regards.
I put the print_js_css code up in the script and got errors who are normal in my opinion. missing stuf. Not important, I was playing around.
leave it. I wait for your team to implement the feature. Will be a great Yslow solution, as 4 css and styles will no longer load.
Conflict with Customizr Theme
Reading this thread I understand better what is causing my own problem. Booking calendar is making global changes to my Customizr theme which is causing all pages and posts with sidebar enabled to display incorrectly. ie it’s pushing the sidebar below the page/post content. presumably it’s changing the page size? Also messing up the front page.This is only apparent when viewing on ipad OS7 in portrait view.
I Have had to disable your plugin. WITH REGRET!!! It’s a superb plugin, just what I needed but I haven’t time or knowledge to start tinkering with css files. I am now searching for another booking plugin. :o( Interestingly, I think it displayed correctly before the latest plugin upgrade, Nov 3 2013. Would love this put right so I can use it.
no link to site because I’ve disabled it