CSS
-
Hi, how do I disable the styles of your plugin? Thank you)
-
Hello,
Thank you for contacting us.
To remove theme CSS you may override it using style handlers ie. ‘erf-front-style‘ and ‘erf-front-style-responsive‘ in your theme functions.php file and use your own CSS files.
Usage :wp_enqueue_style( 'erf-front-style', get_stylesheet_uri() . '/your-css-file'); wp_enqueue_style( 'erf-front-style-responsive', get_stylesheet_uri() . '/your-css-file');Feel free to drop us an email on [email protected] or you can also contact us through our website’s support page http://www.easyregistrationforms.com/support/ in case you have any other questions or concerns.
-
This reply was modified 7 years, 6 months ago by
easyregistrationforms.
My theme already has styles, why should I connect them the second time?
How to just disable ‘erf-front-style’ file style.css your plugin? Thank you)Hello @aleksandr,
What we meant is that connect a blank css file using our enqueue handler. This will disable all our css. Your theme’s styling has nothing to do with this.
When i add
wp_enqueue_style( 'erf-front-style', get_stylesheet_uri() . '/your-css-file');
WordPress connects a second time file with styles of my theme.
In file
easy-registration-forms/includes/class-frontend.php
you connect the style twice.
109 and 158 line
wp_enqueue_style('erf-front-style', ERFORMS_PLUGIN_URL . 'assets/css/style.css');
Why does not it workadd_action('wp_print_styles', 'mytheme_dequeue_css_from_plugins', 100); function mytheme_dequeue_css_from_plugins() { wp_dequeue_style( "erf-front-style" ); }And
function remove_styles () { wp_deregister_style ('erf-front-style'); } add_action ('wp_print_styles','remove_styles',100);The issue is not resolved)
Hello,
We need more details about the issue you are facing.
Please raise a support ticket on our email [email protected] or you can leave a message on our website’s support page http://www.easyregistrationforms.com/support/Looking forward for your response.
Oh man, just add to your plugin the ability to turn off the styles of your plugin as scripts))
Separately
erf-front-style
Separately
erf-front-style-responsiveThanks for the nice plugin)
Began to do the translation, but it is veeeery large)Hello @aleksandrx,
We found the issue about why the dequeue is not working. We will be including the fix in next week release. I will update you here.
-
This reply was modified 7 years, 6 months ago by
The topic ‘CSS’ is closed to new replies.