/modules/custom-css.php

  1. <?php 
  2.  
  3. /** 
  4. * Module Name: Custom CSS 
  5. * Module Description: Customize your site*s CSS without modifying your theme. 
  6. * Sort Order: 2 
  7. * First Introduced: 1.7 
  8. * Requires Connection: No 
  9. * Auto Activate: Yes 
  10. * Module Tags: Appearance 
  11. * Additional Search Queries: css, customize, custom, style, editor, less, sass, preprocessor, font, mobile, appearance, theme, stylesheet 
  12. */ 
  13.  
  14. function jetpack_load_custom_css() { 
  15. include dirname( __FILE__ ) . "/custom-css/custom-css.php"; 
  16.  
  17. add_action( 'jetpack_modules_loaded', 'custom_css_loaded' ); 
  18.  
  19. function custom_css_loaded() { 
  20. Jetpack::enable_module_configurable( __FILE__ ); 
  21. Jetpack::module_configuration_load( __FILE__, 'custom_css_configuration_load' ); 
  22.  
  23. function custom_css_configuration_load() { 
  24. wp_safe_redirect( admin_url( 'themes.php?page=editcss#settingsdiv' ) ); 
  25. exit; 
  26.  
  27. jetpack_load_custom_css(); 
.