movingmagic
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7 Datepicker] Disable sundaysTry this for disabling all dates except wednesday:
jQuery(function($){
$(“#woensdag”).datepicker({
beforeShowDay: function(date){
var day = date.getDay();
return [day != 0 && day != 1 && day != 2 && day != 4 && day != 5 && day != 6];
}});
});And on the contact-form-7 form:
<p>Choose date:<br />
[date* datename id:woensdag months:1 first-day:1 min-date:0 readonly]</p>For the CJT Plugin: See:
As for the datepicker: I have installed this one:
/contact form 7 datepickerForum: Plugins
In reply to: [Contact Form 7 Datepicker] Disable sundaysHi xuxu88,
Please try the CJT plugin again. It’s really super simple and brilliant!
– first, add your code to a code block
– second, go to “MASTER” (up left of the code blocko) there choose “EDIT and then you choose CSS or Javascript or PHP etc. This add the correct tags to your codeblock.
– third, define which pages or global you want to apply the code block to.As soon as this works for you, you will never turn back ??
Forum: Plugins
In reply to: [Contact Form 7 Datepicker] Disable sundaysTry this (thanks GaryBerg for the additional days disabled update)
Change the day numbers (0 2 4 5) to your liking.jQuery(function($){
var holidayDates = [“10-5”, “13-5”]; // define your holidays here
$(“#inputfield_id”).datepicker({
numberOfMonths: 1,
beforeShowDay: function(date) {
var day = date.getDay(),
dm = date.getDate() + “-” + (date.getMonth() + 1);
var isHoliday = ($.inArray(dm, holidayDates) != -1);
return [day != 0 && day != 2 && day != 4 && day != 5 && !isHoliday];
}});
});Forum: Plugins
In reply to: [Twenty20 Image Before-After] How to change appearance of slider bar?Wow! Zayed, that’s a fast and thorough response!
Thanks very much! I am looking forward to the greatest and latest version this weekend ??Forum: Reviews
In reply to: [Twenty20 Image Before-After] Very nice, simple to useMy work around for this plugin to work with my pagebuilder was to just use the standard editor on the page that shows your before/after images.
Come to think of it, it would also be quite possible to build the shortcodes you need on a temporary page with the standard WordPress editor and then copy those shortcodes to your pagebuilder page. That would still be much faster than using any other solution.Forum: Reviews
In reply to: [CSS & JavaScript Toolbox] This plugin saves me hours of timeJust adding that it is my most used plugin too. It’s amazing. Easy. Great!
Forum: Plugins
In reply to: [Contact Form 7 Datepicker] Disable sundaysHi Gary,
Great!
I was just about to tell you this, but my smartphone wouldn’t allow me ??
But great you figured this one out
All smiles ?? ?? ??Forum: Plugins
In reply to: [Contact Form 7 Datepicker] Disable sundaysHi all,
so I solved this.
For the additional CSS, PHP, Javascript needed I am now using a brilliant plugin called “CSS and Javascript Toolbox” or “CJT” in short.
It lets you define “blocks” of code and you can choose where to insert these. The big advantage of that is that you have all your additional code for your theme in one place and when you switch to another theme, everything still works. Even better than using a child theme.
When using this plug-in, don’t forget to define the additional script tags with your code block (you will find out).In the header of the page, with your datepicker containing form shortcode, you can add this javascript:
jQuery(function($){
var holidayDates = [“10-5”, “13-5”]; // define your holidays here
$(“#brengdatum,#haaldatum”).datepicker({
numberOfMonths: 1,
beforeShowDay: function(date) {
var day = date.getDay(),
dm = date.getDate() + “-” + (date.getMonth() + 1);
var isHoliday = ($.inArray(dm, holidayDates) != -1);
return [day != 0 && !isHoliday];
}});
});#brengdatum and #haaldatum are two datepicker input fields on the form 7 form and those names are the id’s that you should give them.
If you have only one datepicker on the form, just use one id name like #your-id-name.
day != 0 is Sunday.
so you block sundays with the above script. You can replace that with another day. So Monday should be 1, Tuesday 2, etc.TIP:
Use id names for unique items, and class names for multiple items with the same class.
id names are referenced in css with a #. Like #your-id-name.
class names are refenced in css with a dot. Like .your-class-name.Forum: Plugins
In reply to: [Table Maker] Change the Color of Two Specific Rows and the Header ColorHi,
and what is the answer?
I would like to color some cells too.
Forum: Plugins
In reply to: [MslsMenu] Edit flag and positioningHow do you add a class to the flag?
Forum: Plugins
In reply to: [MslsMenu] Text for language and alignment is offIs this resolved? I have the same problem:
The flag is at the top against the top line of the menu, it should be vertically centered instead.Forum: Plugins
In reply to: [Contact Form 7 Datepicker] Disable a specific month or some daysDid you already figure this out? Then I’d like to know.
Thanks,
PieterForum: Plugins
In reply to: [Contact Form 7 Datepicker] Datepicker Theme won't change!Add this to wp-config.php
define(‘WPCF7_LOAD_CSS’, true);
Forum: Plugins
In reply to: [Contact Form 7 Datepicker] Disable sundaysI have the same question.
I am trying hard to find some code to disable an array of dates or date ranges. I did not find anything useful or working yet, so I hope someone can answer this question.
Forum: Plugins
In reply to: [Contact Form 7 Datepicker] Datepicker Theme won't change!Same problem here.