0

I'm trying to create a theme option section for an WP theme using the code provided at http://codex.wordpress.org/Theme_Customization_API ( Example Theme Customization Class )

I added some sections, i modified some CSS elements and everything working fine in Theme Customizer. The problem is when I press Save and Publish the changes are wrote directly to the header of the WP Theme and I dont like it.

Is there any way to modify that script in order to save to the Stylesheet file ?

Thanks

1 Answer 1

1

It saves to wp_head on line 149. You could comment that line out and try something like this:

$old = fopen(get_template_directory().'/style.css', a);
fwrite($old, array( 'MyTheme_Customize' , 'header_output' ));
fclose($old);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.