Overriding Default Stylesheet
-
There is a bug in the code which does not allow the user css file to be picked up. Here is a small modification I propose to the code in the file
simplr_reg_page.php, change the functionsimplr_reg_styles()to the following:function simplr_reg_styles() { $options = get_option('simplr_reg_options'); if($options->styles != 'yes') { if( @$options->style_skin ) { $src = SIMPLR_URL .'/assets/skins/'.$options->style_skin; } else { $src = SIMPLR_URL .'/assets/skins/default.css'; } if(!empty($options->stylesheet)) { $src = get_stylesheet_directory_uri().$options->stylesheet; } wp_register_style('simplr-forms-style',$src); wp_enqueue_style('simplr-forms-style'); } }make sure you select your custom stylesheet from the root of your stylesheet path, so for example if your css file is form.css and lives in the same folder as your
style.cssfile then put in/form.cssin the settings. If you have it under a child folder called css, then/css/form.css…The above will work regardless of wether your are working with a Theme or a Child Theme 🙂
thanks for a wonderful plugin!
The topic ‘Overriding Default Stylesheet’ is closed to new replies.