Hello Webikon, thanks very much for your answer.
I added the css code into the default css theme file and now it looks OK, then I added the two lines of code you kindly indicated in the wp-includes/functions.wp-scripts.php file, but although now it shows the remaining days, it is still not working.
function wp_register_script( $handle, $src, $deps = array(), $ver = false, $in_footer = false ) {
global $wp_scripts;
if ( ! is_a( $wp_scripts, ‘WP_Scripts’ ) ) {
if ( ! did_action( ‘init’ ) )
_doing_it_wrong( __FUNCTION__, sprintf( __( ‘Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.’ ),
‘wp_enqueue_scripts
‘, ‘admin_enqueue_scripts
‘, ‘login_enqueue_scripts
‘ ), ‘3.3’ );
$wp_scripts = new WP_Scripts();
}
$wp_scripts->add( $handle, $src, $deps, $ver );
if ( $in_footer )
$wp_scripts->add_data( $handle, ‘group’, 1 );
wp_enqueue_script(‘ch_js_widget’);
}
—————————
function wp_localize_script( $handle, $object_name, $l10n ) {
global $wp_scripts;
if ( ! is_a( $wp_scripts, ‘WP_Scripts’ ) ) {
if ( ! did_action( ‘init’ ) )
_doing_it_wrong( __FUNCTION__, sprintf( __( ‘Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.’ ),
‘wp_enqueue_scripts
‘, ‘admin_enqueue_scripts
‘, ‘login_enqueue_scripts
‘ ), ‘3.3’ );
return false;
}
return $wp_scripts->localize( $handle, $object_name, $l10n );
wp_localize_script(‘ch_js_widget’, ‘ch_ajax’, array(‘ajaxurl’ => admin_url(‘admin-ajax.php’)));
}
Where should I add this code?
Again…Thanks very very much!!