WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7 Datepicker
Problem with googleapis (3 posts)

  1. srtxema
    Member
    Posted 1 year ago #

    I have a problem with this plugin. When I active it, insert a javascript on my webpage head that doesn´t exist.

    <link rel='stylesheet' id='jquery-ui-theme-css' href='http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css?ver=3.5.1' type='text/css' media='all' />

    Could you said me how i can change this js?

    thanks

    http://wordpress.org/extend/plugins/contact-form-7-datepicker/

  2. frankenschulz
    Member
    Posted 1 year ago #

    Same here, suddenly the path 'http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css?ver=3.5.1 is wrong...

    I'm using 2.2.1 on WP 3.5.1 -- is this an issue also in more current versions of datepicker?

  3. spcaer
    Member
    Posted 11 months ago #

    To correct this, you can enqueue the styles from your theme. Just copy/paste this code into your functions.php file of your current WordPress theme:

    add_action( 'wp_enqueue_scripts', 'x_datepicker_style' );
    
    function x_datepicker_style() {
    	// register style
    	wp_register_style( 'date-picker', 'http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css' );
    	// load style
    	wp_enqueue_style('date-picker');
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic