Inbuilt style for jquery-ui-datepicker

As far as I know, there is not style for datepicker. You have to register your own. The code then will be: function rr_scripts() { wp_enqueue_script( ‘jquery’ ); wp_enqueue_script( ‘jquery-ui-datepicker’, array( ‘jquery’ ) ); wp_register_style( ‘bootstrap_css’, get_template_directory_uri() . ‘/assets/css/bootstrap.min.css’ ); wp_enqueue_style( ‘bootstrap_css’ ); // I’m using Twitter Bootstrap as CSS(if it matters) wp_register_style(‘jquery-ui’, ‘http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css’); wp_enqueue_style( … Read more

Forcing reload of editor-style.css

There is a hook for that: ‘mce_css’. It is called in _WP_Editors::editor_settings() and you get all loaded stylesheets comma separated as the first and only parameter. Now it is easy: Use the global variable $editor_styles (here are your theme’s and parent theme’s editor stylesheets stored already), add the time of the file’s last modification as … Read more

Enqueue Google Web Fonts Without Messing Up Symbols In URL

WordPress knows what it is doing here. Honest. When rendering an ampersand in HTML, you should always use & or &. The browser then converts it to & before actually firing the HTTP request. See for yourself by inspecting the network calls in a web inspector tool. You’re not actually losing your non-latin subsets. Notice … Read more

WordPress Admin Bar Overlapping Twitter Bootstrap Navigation [closed]

How to prevent the WordPress admin bar from overlapping with your Twitter Bootstrap navigation bar. In response to: WordPress admin bar overlapping twitter bootstrap navigation Asked by: @TheWebs If you are using Twitter Bootstrap with WordPress and have an issue with the WordPress admin bar overlapping with your navigation bar, you’re probably pretty frustrated with … Read more

Disable SSL / HTTPS for wordpress

Check your wp-config.php file for lines like: define( ‘WP_SITEURL’, ‘https://example.com’ ); define( ‘WP_HOME’, ‘https://example.com’ ); Also check your database’s {prefix}_options table: SELECT * FROM wp_options WHERE option_name=”siteurl” OR option_name=”home”; …assuming that your database’s prefix is wp_.

How to change version of .css in WordPress?

The fourth argument, $ver for wp_enqueue_style() allows you to set the version: wp_enqueue_style( string $handle, string $src = false, array $deps = array(), string|bool|null $ver = false, string $media=”all” ); Per the docs: $ver (string|bool|null) (Optional) String specifying stylesheet version number, if it has one, which is added to the URL as a query string … Read more

Remove Open Sans from Twenty Twelve theme

Found the answer here: Script dequeuing calls should be added to the wp_print_scripts action hook(..). This is because scripts are typically enqueued on the wp_enqueue_script hook, which happens early in the wp_head process. The wp_print_scripts hook happens right before scripts are printed, and thus is latest in the process. (Otto) Following the same logic we … Read more

SSL Breaks WordPress CSS

For the login part, this works for me … Paste the following line in your wp-config.php if ($_SERVER[‘HTTP_X_FORWARDED_PROTO’] == ‘https’) $_SERVER[‘HTTPS’]=’on’; but make sure that you do it before the following line require_once(ABSPATH . ‘wp-settings.php’); By doing so you can get your admin panel back … See details here Also to avoid getting Mixed content, … Read more

TinyMCE: adding CSS to format dropdown

You can not enhance the drop-down list formatselect. But you can enhance with the hook tiny_mce_before_init the second drop down styleselect, there is to hide in a default WordPress install. The documentation list all defaults and possibilities. inline – Name of the inline element to produce, for example “span”. The current text selection will be … Read more

Could the WP script/style loader be used to concatenate and gzip scripts and styles in the front-end?

late answer From a brief look: You’d have to use include( admin_url().’load-scripts.php’ ); and include( admin_url().’script-loader.php’ ); Then jump into $GLOBALS[‘wp_scripts’]: Use… $wp_scripts->default_dirs( array_merge( $wp_scripts->default_dirs ,array( ‘/themes/your_theme/js/’ ) ); …to extend it. And then use $wp_scripts->add( $handle, $path_from_content_dir, false/array( $deps ), $ver ) to add a script. Notes: Uncompressed scripts get searched by .dev.js (when … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)