Hi there. Great plugin, nice work!
thank you.
Unfortunately the plugin connects to “ajax.googleapis.com” in the background.
if you use jquery-ui
functionality (tabs/collapsible sections/toggles sections). The js scripts are loaded from WP core (your server), however the css styles are loaded from a js CDN repo. This is common practice, more reliable.
If you need to block this, you have 2 options, dequeue the offending stylesheets and either,
- Custom style your tabs/toggles/collapsible section which you are using in your form, (only minimal rules are actually being used from the stylesheets.
- Include those stylesheets in your theme folder and load them instead.
There are 3 stylesheets being loaded using the following handles,
cf7-jquery-ui
– themes/smoothness/jquery-ui.min.css
cf7-jquery-ui-theme
– themes/smoothness/jquery-ui.theme.min.css
cf7-jquery-ui-structure
– themes/smoothness/jquery-ui.structure.min.css
To dequeue (or enqueue) these stylesheets, use the action fired at the end of the enqueue process,
add_action('smart_grid_enqueue_scripts', 'gdrpr_fix',10,1);
function gdrpr_fix($cf7_key){
if('my-form'===$cf7_key){//check this is the right form (if need be).
wp_dequeue_style('cf7-jquery-ui');
wp_dequeue_style('cf7-jquery-ui-theme');
wp_dequeue_style('cf7-jquery-ui-structure');
// possibly enqueue your own here...
}
}
NB: v5 (in the pipeline) of this plugin will do away with jquery-ui altogether.