Advertisement
srikat

Untitled

Dec 5th, 2013
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.61 KB | None | 0 0
  1. <?php
  2. //* Start the engine
  3. include_once( get_template_directory() . '/lib/init.php' );
  4.  
  5. //* Child theme (do not remove)
  6. define( 'CHILD_THEME_NAME', 'Genesis Sample Theme' );
  7. define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' );
  8. define( 'CHILD_THEME_VERSION', '2.0.1' );
  9.  
  10. //* Enqueue Lato Google font
  11. add_action( 'wp_enqueue_scripts', 'genesis_sample_google_fonts' );
  12. function genesis_sample_google_fonts() {
  13.     wp_enqueue_style( 'google-font-lato', '//fonts.googleapis.com/css?family=Lato:300,700', array(), CHILD_THEME_VERSION );
  14. }
  15.  
  16. //* Add HTML5 markup structure
  17. add_theme_support( 'html5' );
  18.  
  19. //* Add viewport meta tag for mobile browsers
  20. add_theme_support( 'genesis-responsive-viewport' );
  21.  
  22. //* Add support for custom background
  23. add_theme_support( 'custom-background' );
  24.  
  25. //* Add support for 3-column footer widgets
  26. add_theme_support( 'genesis-footer-widgets', 3 );
  27.  
  28.  
  29.  
  30. add_action( 'after_setup_theme', 'prefix_disable_simple_social_icons_styles' );
  31. /**
  32.  * Remove Simple Social Icons styles.
  33.  *
  34.  * Simple Social Icons loads styles with a bunch of !important declarataions.
  35.  * This will disable the style output and allow you to style your icons in your
  36.  * theme more easily.
  37.  *
  38.  * @author FAT Media, LLC
  39.  * @link   http://youneedfat.com
  40.  */
  41. function prefix_disable_simple_social_icons_styles() {
  42.     if ( class_exists( 'Simple_Social_Icons_Widget' ) ) {
  43.  
  44.         /** Dequeue icon styles */
  45.         wp_dequeue_style( 'simple-social-icons-font');
  46.  
  47.         /** Remove the CSS in <head> */
  48.         remove_action( 'wp_head', array( Simple_Social_Icons_Widget::get_instance(), 'css' ) );
  49.     }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement