relu / contact-form-7-datepicker

Datepicker for Contact Form 7 Wordpress Plugin based on JQueryUI's datepicker (NO LONGER MAINTAINED)
http://wordpress.org/plugins/contact-form-7-datepicker/
29 stars 34 forks source link

Contact Form 7 Color Picker styles overwrite styles for other places in theme #54

Open seaus opened 11 years ago

seaus commented 11 years ago

I am using a mercor woocommerce theme and a simple shortcode for tabs (see here:http://www.journeyinstruments.com/product/solid-sitka-rosewood-guitar/)

I am also using contact for 7 with your date picker plugin, which is very helpful (http://www.journeyinstruments.com/register-your-journey-instrument/)

However, there is an issue. Whatever style I use in date picker overwrites the style in the theme. And if I select "base" the months on the date picker do not work (see in above example).

relu commented 11 years ago

If you already use a jquery-ui theme from somewhere else I suggest you disable the plugin's datepicker theme. There might be more to it though, you might need to enqueue custom CSS. I can't really help you much on this one.

locomo commented 7 years ago

how about only enqueueing the styles for your plugin if the current page has a contact form on it rather than on every page

locomo commented 7 years ago

if someone finds this i was able to do a workaround by disabling the loading of the theme on certain pages with this filter .. but i think it would be better if the files were only being enqueued on pages where they are being used

add_filter( 'cf7dp_ui_theme', '__return_false' );