Title: style_settings function over-riding my CSS
Last modified: August 20, 2016

---

# style_settings function over-riding my CSS

 *  [sonic1243](https://wordpress.org/support/users/sonic1243/)
 * (@sonic1243)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/style_settings-function-over-riding-my-css/)
 * Hi, I’m taking the Oxygen theme apart and have over-ridden all CSS info with 
   my own; all working fine except one thing – the style_settings function is over-
   riding my font settings with its own. Oxygen allows a choice of google-fonts 
   from the WP-Admin menu but I do not want this feature. I’ve tried removing this
   function completely but it gives an error about a missing callback from /wp-includes/
   plugins.php line 405.
 * I can see the output in the head section of the rendered html as a <style> insert
   following the comment: <!– Style settings –>
 * What’s the best way to remove this function? TY

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [sonic1243](https://wordpress.org/support/users/sonic1243/)
 * (@sonic1243)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/style_settings-function-over-riding-my-css/#post-2741803)
 * I’ve actually just found a work-around using “!important” in my CSS.
    But, I’m
   aware this is a hack – I already have concerns about the refresh speed of this
   site; when I press F5 it can take a very long time to update – any thoughts? 
   In comparison I have another WP test site starting from blankslate which loads
   instantly.
 *  [pmpksamy](https://wordpress.org/support/users/pmpksamy/)
 * (@pmpksamy)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/style_settings-function-over-riding-my-css/#post-2741851)
 * Warning: call_user_func_array() expects parameter 1 to be a valid callback, function‘
   evolve_mlu_css’ not found or invalid function name in /home/efyselfc/public_html/
   wp-includes/plugin.php on line 405
 * Warning: call_user_func_array() expects parameter 1 to be a valid callback, function‘
   evolve_mlu_js’ not found or invalid function name in /home/efyselfc/public_html/
   wp-includes/plugin.php on line 405
 * Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate
   388172 bytes) in /home/efyselfc/public_html/wp-includes/class-feed.php on line
   4
 * please help me this error for installing new themes Evo love themes please help
   me
 *  Thread Starter [sonic1243](https://wordpress.org/support/users/sonic1243/)
 * (@sonic1243)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/style_settings-function-over-riding-my-css/#post-2741882)
 * pmpksamy: I think you have posted your problem under my problem?!
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/style_settings-function-over-riding-my-css/#post-2741990)
 * [@pmpksamy](https://wordpress.org/support/users/pmpksamy/)
 * please start your own topic.
 *  Thread Starter [sonic1243](https://wordpress.org/support/users/sonic1243/)
 * (@sonic1243)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/style_settings-function-over-riding-my-css/#post-2741991)
 * “double posting is treated in the same way as bumping”
 * So, now I’m bumping? I can’t win? Give up?
 *  [Digital Raindrops](https://wordpress.org/support/users/adeptris/)
 * (@adeptris)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/style_settings-function-over-riding-my-css/#post-2742001)
 * [@sonic](https://wordpress.org/support/users/sonic/)
    This is the same as the
   twenty eleven dark theme option, other styles are loaded in the header after 
   the stylesheet so they cannot be over-written, [ this was my solution](http://digitalraindrops.net/2011/07/twenty-eleven-dark-child-theme/)
   for a twenty eleven child theme, I have changed the code below for a main theme,
   so it is **untested**.
 * This will load the custom-style.css after all stylesheets and header styles have
   been loaded.
 * Create a second style.css file like custom-style.css, then in your functions.
   php add:
 *     ```
       add_action( 'after_setup_theme', 'post_theme_setup' );
   
       if ( !function_exists( 'post_theme_setup' ) ):
       function post_theme_setup() {
   
       	/* Add our custom styles after all stylesheets have loaded */
       	if ( !function_exists( 'custom_enqueue_style' ) ):
       		function custom_enqueue_style() {
       			wp_enqueue_style( 'custom_style', get_template_directory_uri() . '/custom-style.css', array(), null );
       			do_action( 'custom_enqueue_style', 'custom_style' );
       		}
       	add_action( 'wp_enqueue_scripts', 'custom_enqueue_style', 11 );
       	endif;
       }
       endif;
       ```
   
 * HTH
 * David
 *  Thread Starter [sonic1243](https://wordpress.org/support/users/sonic1243/)
 * (@sonic1243)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/style_settings-function-over-riding-my-css/#post-2742002)
 * Thanks David : ) About 5 minutes ago I realised I could just comment out the 
   line in the functions.php.
 *     ```
       /* Style settings
       add_action( 'wp_head', 'yourtheme_style_settings' );	 */
       ```
   
 * The style insert can be edited fully from functions.php but I just wished to 
   remove it all together.
    Cheers for your idea : )

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘style_settings function over-riding my CSS’ is closed to new replies.

 * 7 replies
 * 4 participants
 * Last reply from: [sonic1243](https://wordpress.org/support/users/sonic1243/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/style_settings-function-over-riding-my-css/#post-2742002)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
