Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //* Start the engine
- include_once( get_template_directory() . '/lib/init.php' );
- //* Child theme (do not remove)
- define( 'CHILD_THEME_NAME', 'Genesis Sample Theme' );
- define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' );
- define( 'CHILD_THEME_VERSION', '2.0.1' );
- //* Enqueue Lato Google font
- add_action( 'wp_enqueue_scripts', 'genesis_sample_google_fonts' );
- function genesis_sample_google_fonts() {
- wp_enqueue_style( 'google-font-lato', '//fonts.googleapis.com/css?family=Lato:300,700', array(), CHILD_THEME_VERSION );
- }
- //* Add HTML5 markup structure
- add_theme_support( 'html5' );
- //* Add viewport meta tag for mobile browsers
- add_theme_support( 'genesis-responsive-viewport' );
- //* Add support for custom background
- add_theme_support( 'custom-background' );
- //* Add support for 3-column footer widgets
- add_theme_support( 'genesis-footer-widgets', 3 );
- add_action( 'after_setup_theme', 'prefix_disable_simple_social_icons_styles' );
- /**
- * Remove Simple Social Icons styles.
- *
- * Simple Social Icons loads styles with a bunch of !important declarataions.
- * This will disable the style output and allow you to style your icons in your
- * theme more easily.
- *
- * @author FAT Media, LLC
- * @link http://youneedfat.com
- */
- function prefix_disable_simple_social_icons_styles() {
- if ( class_exists( 'Simple_Social_Icons_Widget' ) ) {
- /** Dequeue icon styles */
- wp_dequeue_style( 'simple-social-icons-font');
- /** Remove the CSS in <head> */
- remove_action( 'wp_head', array( Simple_Social_Icons_Widget::get_instance(), 'css' ) );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement