Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Flexform › Date Picker breaking Slider
New Landing › How can we help? › Themeforest Theme Support › Flexform › Date Picker breaking Slider
Tagged: added, any, builder, code, date, file, following, form, Im, its, modify, plugin, seems, slider, theme, trying
- This topic has 8 replies, 3 voices, and was last updated 10 years by Cosmin – SUPPORT.
-
Posted in: Flexform
-
June 14, 2013 at 4:57 am #8184
I’m trying to modify the date picker in the Visual Form Builder plugin. I am able to get the code to do what it’s supposed to, but it breaks the slider on the site.
I have added the following code to the functions.php file of the theme and that seems to be what disables the slider.
function my_scripts_method() {
wp_register_script( ‘my-js-file’,
get_template_directory_uri() . ‘/js/my-js.js’,
array( ‘jquery’ ),
’1.0′,
false );wp_enqueue_script( ‘my-js-file’ );
}add_action( ‘wp_enqueue_scripts’, ‘my_scripts_method’ );
Any help with this would be great.
June 14, 2013 at 2:39 pm #8261Adding that code wouldn’t break the slider; instead, it’s what’s in that JS file that is most likely breaking the slider – make sure you’re running jQuery in no conflict mode.
Regards,
————————————————————————————————————Cosmin – Support
June 14, 2013 at 2:47 pm #8269Is this the proper way?
jQuery.noConlict(document).ready(function($) {
$.datepicker.setDefaults({
dateFormat: ‘d MM, yy’
});
});Thanks for the help.
June 14, 2013 at 3:20 pm #8271is it still causing issues when you try the non conflict?
Thanks
BenJune 14, 2013 at 3:42 pm #8274yes, it breaks the revolution slider and the blog carousel.
stmnetwork.ca is the site in question.
June 15, 2013 at 1:35 pm #8302Are you adding this in a file? As it might have closed off the links to jquery you might want to reference it just before your script or try and add it into a js script that is referencing jquery and is getting pulled in by the page
Thanks
BenJune 15, 2013 at 2:44 pm #8310I have created a .js file in the JS folder of the theme.
I put this code
function my_scripts_method() { wp_register_script( 'my-js-file', get_template_directory_uri() . '/js/my-js.js', array( 'jquery' ), '1.0', false ); wp_enqueue_script( 'my-js-file' ); } add_action( 'wp_enqueue_scripts', 'my_scripts_method' );
In the functions.php file and added
<?php wp_enqueue_script("myUi","https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js"); ?>
In the header.php file of the theme.
All of which breaks the slider and blog carousel.
I have tried it in other themes and it seems to work.
June 19, 2013 at 8:17 pm #8714I have emailed the plugin developer and he says it should work with Jquery 1.7. Is that the version used by the theme?
June 20, 2013 at 9:28 pm #8846Nope, our theme is using the jQuery version that WordPress provides, so we can make sure things work the same for all people using the latest WP version.
That version currently is 1.8.3, so your plugin is outdated.
Regards,
————————————————————————————————————
Cosmin
Support Assistant -
Posted in: Flexform
You must be logged in and have valid license to reply to this topic.