• 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 function simplr_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.css file then put in /form.css in 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!

    https://ww.wp.xz.cn/plugins/simplr-registration-form/

The topic ‘Overriding Default Stylesheet’ is closed to new replies.