Set background color on theme load
-
Hi
I’m trying to get my twentytwelve child theme to make sure that when the theme is activated the background is white. I can’t just add the CSS to the wp_head because then the user can’t set a custom background.
I’ve been looking at the after_setup_theme hook
function set_white_bg() { set_theme_mod( custom-background, 'ffffff'); } add_action('after_setup_theme', 'set_white_bg');
What am I doing wrong here?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Set background color on theme load’ is closed to new replies.