New Landing How can we help? Themeforest Theme Support Flexform Date Picker breaking Slider

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Flexform
  • #8184
    themisfit
    Member
    Post count: 14

    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.

    #8261
    Cosmin – SUPPORT
    Member
    Post count: 3851

    Adding 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

    #8269
    themisfit
    Member
    Post count: 14

    Is this the proper way?

    jQuery.noConlict(document).ready(function($) {
    $.datepicker.setDefaults({
    dateFormat: ‘d MM, yy’
    });
    });

    Thanks for the help.

    #8271
    Ben – SUPPORT
    Member
    Post count: 690

    is it still causing issues when you try the non conflict?

    Thanks
    Ben

    #8274
    themisfit
    Member
    Post count: 14

    yes, it breaks the revolution slider and the blog carousel.

    stmnetwork.ca is the site in question.

    #8302
    Ben – SUPPORT
    Member
    Post count: 690

    Are 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
    Ben

    #8310
    themisfit
    Member
    Post count: 14

    I 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.

    #8714
    themisfit
    Member
    Post count: 14

    I have emailed the plugin developer and he says it should work with Jquery 1.7. Is that the version used by the theme?

    #8846
    Cosmin – SUPPORT
    Member
    Post count: 3851

    Nope, 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

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register