Last active
February 22, 2016 20:54
-
-
Save marisqaporter/aa432845a705e9ef7f2f to your computer and use it in GitHub Desktop.
Marisa's Genesis Starter Theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Customizer additions. | |
* | |
* @package Workstation Pro | |
* @author StudioPress | |
* @link http://my.studiopress.com/themes/workstation/ | |
* @license GPL2-0+ | |
*/ | |
/** | |
* Get default accent color for Customizer. | |
* | |
* Abstracted here since at least two functions use it. | |
* | |
* @since 1.0.0 | |
* | |
* @return string Hex color code for accent color. | |
*/ | |
function workstation_customizer_get_default_accent_color() { | |
return '#ff4800'; | |
} | |
add_action( 'customize_register', 'workstation_customizer_register' ); | |
/** | |
* Register settings and controls with the Customizer. | |
* | |
* @since 1.0.0 | |
* | |
* @param WP_Customize_Manager $wp_customize Customizer object. | |
*/ | |
function workstation_customizer_register() { | |
global $wp_customize; | |
$images = apply_filters( 'workstation_images', array( '1', '2' ) ); | |
$wp_customize->add_section( 'workstation-settings', array( | |
'description' => __( 'Use the included default images or personalize your site by uploading your own images.<br /><br />The default images are <strong>1800 pixels wide and 500 pixels tall</strong>.', 'workstation' ), | |
'title' => __( 'Front Page Background Images', 'workstation' ), | |
'priority' => 35, | |
) ); | |
foreach( $images as $image ){ | |
$wp_customize->add_setting( $image .'-workstation-image', array( | |
'default' => sprintf( '%s/images/bg-%s.jpg', get_stylesheet_directory_uri(), $image ), | |
'type' => 'option', | |
) ); | |
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, $image .'-workstation-image', array( | |
'label' => sprintf( __( 'Featured Section %s Image:', 'workstation' ), $image ), | |
'section' => 'workstation-settings', | |
'settings' => $image .'-workstation-image', | |
'priority' => $image+1, | |
) ) ); | |
} | |
$wp_customize->add_setting( | |
'workstation_accent_color', | |
array( | |
'default' => workstation_customizer_get_default_accent_color(), | |
'sanitize_callback' => 'sanitize_hex_color', | |
) | |
); | |
$wp_customize->add_control( | |
new WP_Customize_Color_Control( | |
$wp_customize, | |
'workstation_accent_color', | |
array( | |
'description' => __( 'Change the default accent color for links, buttons, and more.', 'workstation' ), | |
'label' => __( 'Accent Color', 'workstation' ), | |
'section' => 'colors', | |
'settings' => 'workstation_accent_color', | |
) | |
) | |
); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file adds the Home Page to the Workstation Pro Theme. | |
* | |
* @author Marisa Porter | |
* @package marisasstartertheme | |
* @subpackage Customizations | |
*/ | |
//* Filter the homepage site description | |
add_filter( 'genesis_seo_description', 'workstation_seo_description', 10, 2 ); | |
function workstation_seo_description( $description, $inside ) { | |
$inside = esc_html( get_bloginfo( 'description' ) ); | |
$description = sprintf( '<h2 class="site-description">%s</h2>', $inside ); | |
return $description; | |
} | |
add_action( 'genesis_meta', 'workstation_front_page_genesis_meta' ); | |
/** | |
* Add widget support for homepage. If no widgets active, display the default loop. | |
* | |
*/ | |
function workstation_front_page_genesis_meta() { | |
if ( is_active_sidebar( 'front-page-1' ) || is_active_sidebar( 'front-page-2' ) || is_active_sidebar( 'front-page-3' ) || is_active_sidebar( 'front-page-4' ) ) { | |
//* Add front-page body class | |
add_filter( 'body_class', 'workstation_body_class' ); | |
function workstation_body_class( $classes ) { | |
$classes[] = 'front-page'; | |
return $classes; | |
} | |
//* Force full width content layout | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
//* Remove breadcrumbs | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs'); | |
//* Remove the default Genesis loop | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
//* Add the rest of front page widgets | |
add_action( 'genesis_loop', 'workstation_front_page_widgets' ); | |
} | |
} | |
function workstation_front_page_widgets() { | |
$image_section_1 = get_option( '1-workstation-image', sprintf( '%s/images/bg-1.jpg', get_stylesheet_directory_uri() ) ); | |
$image_section_2 = get_option( '2-workstation-image', sprintf( '%s/images/bg-2.jpg', get_stylesheet_directory_uri() ) ); | |
if ( ! empty( $image_section_1 ) ) { | |
echo '<div class="image-section-1"></div>'; | |
} | |
genesis_widget_area( 'front-page-1', array( | |
'before' => '<div id="front-page-1" class="front-page-1"><div class="flexible-widgets widget-area wrap' . workstation_widget_area_class( 'front-page-1' ) . '">', | |
'after' => '</div></div>', | |
) ); | |
genesis_widget_area( 'front-page-2', array( | |
'before' => '<div id="front-page-2" class="front-page-2"><div class="flexible-widgets widget-area wrap' . workstation_widget_area_class( 'front-page-2' ) . '">', | |
'after' => '</div></div>', | |
) ); | |
genesis_widget_area( 'front-page-3', array( | |
'before' => '<div id="front-page-3" class="front-page-3"><div class="flexible-widgets widget-area wrap' . workstation_widget_area_class( 'front-page-3' ) . '">', | |
'after' => '</div></div>', | |
) ); | |
if ( ! empty( $image_section_2 ) ) { | |
echo '<div class="image-section-2"></div>'; | |
} | |
genesis_widget_area( 'front-page-4', array( | |
'before' => '<div id="front-page-4" class="front-page-4"><div class="flexible-widgets widget-area wrap' . workstation_widget_area_class( 'front-page-4' ) . '">', | |
'after' => '</div></div>', | |
) ); | |
} | |
genesis(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Start the engine | |
include_once( get_template_directory() . '/lib/init.php' ); | |
//* Setup Theme | |
include_once( get_stylesheet_directory() . '/lib/theme-defaults.php' ); | |
//* Set Localization (do not remove) | |
load_child_theme_textdomain( 'marisasstartertheme', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'workstation' ) ); | |
//* Add Image upload and Color select to WordPress Theme Customizer | |
require_once( get_stylesheet_directory() . '/lib/customize.php' ); | |
//* Include Customizer CSS | |
include_once( get_stylesheet_directory() . '/lib/output.php' ); | |
//* Child theme (do not remove) | |
define( 'CHILD_THEME_NAME', __( 'Marisas Starter Theme', 'marisasstartertheme' ) ); | |
define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/workstation/' ); | |
define( 'CHILD_THEME_VERSION', '1.0.0' ); | |
//* Enqueue Google Fonts | |
add_action( 'wp_enqueue_scripts', 'workstation_enqueue_scripts_styles' ); | |
function workstation_enqueue_scripts_styles() { | |
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Roboto+Condensed:300italic,700italic,700,300', array(), CHILD_THEME_VERSION ); | |
wp_enqueue_style( 'dashicons' ); | |
wp_enqueue_script( 'workstation-responsive-menu', get_stylesheet_directory_uri() . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0', true ); | |
$output = array( | |
'mainMenu' => __( 'Menu', 'workstation' ), | |
'subMenu' => __( 'Menu', 'workstation' ), | |
); | |
wp_localize_script( 'workstation-responsive-menu', 'WorkstationL10n', $output ); | |
} | |
//* Add HTML5 markup structure | |
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); | |
//* Add accessibility support | |
add_theme_support( 'genesis-accessibility', array( 'drop-down-menu', 'headings', 'search-form', 'skip-links' ) ); | |
//* Add viewport meta tag for mobile browsers | |
add_theme_support( 'genesis-responsive-viewport' ); | |
//* Add support for custom header | |
add_theme_support( 'custom-header', array( | |
'flex-height' => true, | |
'width' => 300, | |
'height' => 60, | |
'header-selector' => '.site-title a', | |
'header-text' => false, | |
) ); | |
//* Add support for structural wraps | |
add_theme_support( 'genesis-structural-wraps', array( | |
'header', | |
'footer', | |
) ); | |
//* Add support for after entry widget | |
add_theme_support( 'genesis-after-entry-widget-area' ); | |
//* Add new image sizes | |
add_image_size( 'featured-content-lg', 1200, 600, TRUE ); | |
add_image_size( 'featured-content-sm', 600, 400, TRUE ); | |
//* Unregister layout settings | |
genesis_unregister_layout( 'content-sidebar-sidebar' ); | |
genesis_unregister_layout( 'sidebar-content-sidebar' ); | |
genesis_unregister_layout( 'sidebar-sidebar-content' ); | |
//* Unregister secondary sidebar | |
unregister_sidebar( 'sidebar-alt' ); | |
//* Unregister the header right widget area | |
unregister_sidebar( 'header-right' ); | |
//* Rename Primary Menu | |
add_theme_support ( 'genesis-menus' , array ( 'primary' => __( 'Header Navigation Menu', 'workstation' ), 'secondary' => __( 'Before Header Navigation Menu', 'workstation' ) ) ); | |
//* Remove output of primary navigation right extras | |
remove_filter( 'genesis_nav_items', 'genesis_nav_right', 10, 2 ); | |
remove_filter( 'wp_nav_menu_items', 'genesis_nav_right', 10, 2 ); | |
//* Reposition the navigation | |
remove_action( 'genesis_after_header', 'genesis_do_nav' ); | |
remove_action( 'genesis_after_header', 'genesis_do_subnav' ); | |
add_action( 'genesis_before_header', 'genesis_do_subnav' ); | |
add_action( 'genesis_header', 'genesis_do_nav', 5 ); | |
//* Remove skip link for primary navigation and add skip link for footer widgets | |
add_filter( 'genesis_skip_links_output', 'workstation_skip_links_output' ); | |
function workstation_skip_links_output( $links ){ | |
if( isset( $links['genesis-nav-primary'] ) ){ | |
unset( $links['genesis-nav-primary'] ); | |
} | |
$new_links = $links; | |
array_splice( $new_links, 3 ); | |
if ( is_active_sidebar( 'flex-footer' ) ) { | |
$new_links['footer'] = __( 'Skip to footer', 'workstation' ); | |
} | |
return array_merge( $new_links, $links ); | |
} | |
//* Reposition the entry meta in the entry header | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
add_action( 'genesis_entry_header', 'genesis_post_info', 8 ); | |
//* Reposition the entry image | |
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); | |
add_action( 'genesis_entry_header', 'genesis_do_post_image', 5 ); | |
//* Add featured image above the entry content | |
add_action( 'genesis_entry_header', 'workstation_featured_photo', 5 ); | |
function workstation_featured_photo() { | |
if ( is_attachment() || ! genesis_get_option( 'content_archive_thumbnail' ) ) | |
return; | |
if ( is_singular() && $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) { | |
printf( '<div class="featured-image"><img src="%s" alt="%s" class="entry-image"/></div>', $image, the_title_attribute( 'echo=0' ) ); | |
} | |
} | |
//* Add Excerpt support to Pages | |
add_post_type_support( 'page', 'excerpt' ); | |
//* Output Excerpt on Pages | |
add_action( 'genesis_meta', 'workstation_page_description_meta' ); | |
function workstation_page_description_meta() { | |
if ( is_front_page() ) { | |
remove_action( 'genesis_site_description', 'genesis_seo_site_description' ); | |
add_action( 'genesis_after_header', 'workstation_open_after_header', 5 ); | |
add_action( 'genesis_after_header', 'genesis_seo_site_description', 10 ); | |
add_action( 'genesis_after_header', 'workstation_close_after_header', 15 ); | |
} | |
if ( is_archive() && ! is_post_type_archive() ) { | |
remove_action( 'genesis_before_loop', 'genesis_do_taxonomy_title_description', 15 ); | |
add_action( 'genesis_after_header', 'workstation_open_after_header', 5 ); | |
add_action( 'genesis_after_header', 'genesis_do_taxonomy_title_description', 10 ); | |
add_action( 'genesis_after_header', 'workstation_close_after_header', 15 ); | |
} | |
if ( is_post_type_archive() && genesis_has_post_type_archive_support() ) { | |
remove_action( 'genesis_before_loop', 'genesis_do_cpt_archive_title_description' ); | |
add_action( 'genesis_after_header', 'workstation_open_after_header', 5 ); | |
add_action( 'genesis_after_header', 'genesis_do_cpt_archive_title_description', 10 ); | |
add_action( 'genesis_after_header', 'workstation_close_after_header', 15 ); | |
} | |
if( is_author() ) { | |
remove_action( 'genesis_before_loop', 'genesis_do_author_title_description', 15 ); | |
add_action( 'genesis_after_header', 'workstation_open_after_header', 5 ); | |
add_action( 'genesis_after_header', 'genesis_do_author_title_description', 10 ); | |
add_action( 'genesis_after_header', 'workstation_close_after_header', 15 ); | |
} | |
if ( is_page_template( 'page_blog.php' ) && has_excerpt() ) { | |
remove_action( 'genesis_before_loop', 'genesis_do_blog_template_heading' ); | |
add_action( 'genesis_after_header', 'workstation_open_after_header', 5 ); | |
add_action( 'genesis_after_header', 'workstation_add_page_description', 10 ); | |
add_action( 'genesis_after_header', 'workstation_close_after_header', 15 ); | |
} | |
elseif ( is_singular() && is_page() && has_excerpt() ) { | |
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); | |
add_action( 'genesis_after_header', 'workstation_open_after_header', 5 ); | |
add_action( 'genesis_after_header', 'workstation_add_page_description', 10 ); | |
add_action( 'genesis_after_header', 'workstation_close_after_header', 15 ); | |
} | |
} | |
function workstation_add_page_description() { | |
echo '<div class="page-description">'; | |
echo '<h1 itemprop="headline" class="page-title">' . get_the_title() . '</h1>'; | |
echo '<p>' . get_the_excerpt() . '</p></div>'; | |
} | |
function workstation_open_after_header() { | |
echo '<div class="after-header"><div class="wrap">'; | |
} | |
function workstation_close_after_header() { | |
echo '</div></div>'; | |
} | |
//* Setup widget counts | |
function workstation_count_widgets( $id ) { | |
global $sidebars_widgets; | |
if ( isset( $sidebars_widgets[ $id ] ) ) { | |
return count( $sidebars_widgets[ $id ] ); | |
} | |
} | |
function workstation_widget_area_class( $id ) { | |
$count = workstation_count_widgets( $id ); | |
$class = ''; | |
if( $count == 1 ) { | |
$class .= ' widget-full'; | |
} elseif( $count % 3 == 1 ) { | |
$class .= ' widget-thirds'; | |
} elseif( $count % 4 == 1 ) { | |
$class .= ' widget-fourths'; | |
} elseif( $count % 6 == 0 ) { | |
$class .= ' widget-uneven'; | |
} elseif( $count % 2 == 0 ) { | |
$class .= ' widget-halves uneven'; | |
} else { | |
$class .= ' widget-halves'; | |
} | |
return $class; | |
} | |
//* Add the flexible footer widget area | |
add_action( 'genesis_before_footer', 'workstation_footer_widgets' ); | |
function workstation_footer_widgets() { | |
genesis_widget_area( 'flex-footer', array( | |
'before' => '<div id="footer" class="flex-footer footer-widgets"><h2 class="genesis-sidebar-title screen-reader-text">' . __( 'Footer', 'workstation' ) . '</h2><div class="flexible-widgets widget-area wrap' . workstation_widget_area_class( 'flex-footer' ) . '">', | |
'after' => '</div></div>', | |
) ); | |
} | |
//* Register widget areas | |
genesis_register_sidebar( array( | |
'id' => 'front-page-1', | |
'name' => __( 'Front Page 1', 'workstation' ), | |
'description' => __( 'This is the front page 1 section.', 'workstation' ), | |
) ); | |
genesis_register_sidebar( array( | |
'id' => 'front-page-2', | |
'name' => __( 'Front Page 2', 'workstation' ), | |
'description' => __( 'This is the front page 2 section.', 'workstation' ), | |
) ); | |
genesis_register_sidebar( array( | |
'id' => 'front-page-3', | |
'name' => __( 'Front Page 3', 'workstation' ), | |
'description' => __( 'This is the front page 3 section.', 'workstation' ), | |
) ); | |
genesis_register_sidebar( array( | |
'id' => 'front-page-4', | |
'name' => __( 'Front Page 4', 'workstation' ), | |
'description' => __( 'This is the front page 4 section.', 'workstation' ), | |
) ); | |
genesis_register_sidebar( array( | |
'id' => 'flex-footer', | |
'name' => __( 'Flexible Footer', 'workstation' ), | |
'description' => __( 'This is the footer section.', 'workstation' ), | |
) ); | |
//* ability to upload svgs | |
function cc_mime_types($mimes) { | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
} | |
add_filter('upload_mimes', 'cc_mime_types'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Adds the required CSS to the front end. | |
*/ | |
add_action( 'wp_enqueue_scripts', 'workstation_css' ); | |
/** | |
* Checks the settings for the images and background colors for each image | |
* If any of these value are set the appropriate CSS is output | |
* | |
* @since 1.0 | |
*/ | |
function workstation_css() { | |
$handle = defined( 'CHILD_THEME_NAME' ) && CHILD_THEME_NAME ? sanitize_title_with_dashes( CHILD_THEME_NAME ) : 'child-theme'; | |
$color = get_theme_mod( 'workstation_accent_color', workstation_customizer_get_default_accent_color() ); | |
$opts = apply_filters( 'workstation_images', array( '1', '2' ) ); | |
$settings = array(); | |
foreach( $opts as $opt ){ | |
$settings[$opt]['image'] = preg_replace( '/^https?:/', '', get_option( $opt .'-workstation-image', sprintf( '%s/images/bg-%s.jpg', get_stylesheet_directory_uri(), $opt ) ) ); | |
} | |
$css = ''; | |
foreach ( $settings as $section => $value ) { | |
$background = $value['image'] ? sprintf( 'background-image: url(%s);', $value['image'] ) : ''; | |
if( is_front_page() ) { | |
$css .= ( ! empty( $section ) && ! empty( $background ) ) ? sprintf( '.image-section-%s { %s }', $section, $background ) : ''; | |
} | |
} | |
$css .= ( workstation_customizer_get_default_accent_color() !== $color ) ? sprintf( ' | |
a, | |
.add-black .after-header a:focus, | |
.add-black .after-header a:hover, | |
.author-box-title, | |
.archive-pagination li a:focus, | |
.archive-pagination li a:hover, | |
.archive-pagination .active a, | |
.archive-title, | |
.entry-header .entry-meta, | |
.entry-title a:focus, | |
.entry-title a:hover, | |
.featured-content .entry-meta, | |
.flexible-widgets .featured-content .has-post-thumbnail .alignnone + .entry-header .entry-title a:focus, | |
.flexible-widgets .featured-content .has-post-thumbnail .alignnone + .entry-header .entry-title a:hover, | |
.footer-widgets a:focus, | |
.footer-widgets a:hover, | |
.front-page-3 a:focus, | |
.front-page-3 a:hover, | |
.genesis-nav-menu .sub-menu a:focus, | |
.genesis-nav-menu .sub-menu a:hover, | |
.nav-secondary .genesis-nav-menu .sub-menu a:focus, | |
.nav-secondary .genesis-nav-menu .sub-menu a:hover, | |
.nav-secondary .genesis-nav-menu .sub-menu .current-menu-item > a, | |
.page-title, | |
.site-footer a:focus, | |
.site-footer a:hover, | |
.widget li a:focus, | |
.widget li a:hover, | |
.widget-title { | |
color: %1$s; | |
} | |
button, | |
input[type="button"], | |
input[type="reset"], | |
input[type="submit"], | |
.add-color .after-header, | |
.add-color .site-header, | |
.button, | |
.widget .button { | |
background-color: %1$s; | |
} | |
.after-header, | |
.front-page-1, | |
.genesis-nav-menu .sub-menu, | |
.genesis-nav-menu > .current-menu-item > a, | |
.genesis-nav-menu > li > a:focus, | |
.genesis-nav-menu > li > a:hover { | |
border-color: %1$s; | |
} | |
@media only screen and (max-width: 880px) { | |
.js nav .genesis-nav-menu .menu-item .sub-menu li a:focus, | |
.js nav .genesis-nav-menu .menu-item a:focus, | |
.js nav button:focus, | |
.js .menu-toggle:focus { | |
color: %1$s; | |
} | |
} | |
', $color ) : ''; | |
if( $css ){ | |
wp_add_inline_style( $handle, $css ); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file adds the Landing template to the Workstation Pro Theme. | |
* | |
* @author Marisa Porter | |
* @package Studio | |
* @subpackage Customizations | |
*/ | |
/* | |
Template Name: Landing | |
*/ | |
//* Add custom body class to the head | |
add_filter( 'body_class', 'workstation_add_body_class' ); | |
function workstation_add_body_class( $classes ) { | |
$classes[] = 'landing-page'; | |
return $classes; | |
} | |
//* Remove skip link for primary navigation | |
remove_filter( 'genesis_skip_links_output', 'workstation_skip_links_output' ); | |
//* Force full width content layout | |
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' ); | |
//* Remove site header elements | |
remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); | |
remove_action( 'genesis_header', 'genesis_do_header' ); | |
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ); | |
//* Remove Menus | |
remove_theme_support( 'genesis-menus' ); | |
//* Remove breadcrumbs | |
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); | |
//* Remove site footer widgets | |
remove_action( 'genesis_before_footer', 'workstation_footer_widgets' ); | |
//* Remove site footer elements | |
remove_action( 'genesis_footer', 'genesis_footer_markup_open', 5 ); | |
remove_action( 'genesis_footer', 'genesis_do_footer' ); | |
remove_action( 'genesis_footer', 'genesis_footer_markup_close', 15 ); | |
//* Run the Genesis loop | |
genesis(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* # Marisas Starter Theme | |
Theme Name: marisasstartertheme | |
Theme URI: http://my.studiopress.com/themes/workstation/ | |
Description: Share your vision with the world and showcase your artistic sense with spacious design and beautiful typography. | |
Author: StudioPress | |
Author URI: http://www.studiopress.com/ | |
Version: 1.0.0 | |
Template: genesis | |
Template Version: 2.2.0 | |
Tags: develop, black, orange, white, one-column, two-columns, left-sidebar, right-sidebar, responsive-layout, accessibility-ready, custom-menu, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready | |
License: GPL-2.0+ | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
*/ | |
/* # Table of Contents | |
- HTML5 Reset | |
- Baseline Normalize | |
- Box Sizing | |
- Float Clearing | |
- Defaults | |
- Typographical Elements | |
- Headings | |
- Objects | |
- Gallery | |
- Forms | |
- Tables | |
- Screen reader text | |
- Structure and Layout | |
- Site Containers | |
- Column Widths and Positions | |
- Column Classes | |
- Common Classes | |
- Avatar | |
- Genesis | |
- Search Form | |
- Titles | |
- WordPress | |
- Widgets | |
- Featured Content | |
- Plugins | |
- Genesis eNews Extended | |
- Jetpack | |
- Skip Links | |
- Site Header | |
- Title Area | |
- Widget Area | |
- After Header | |
- Site Navigation | |
- Accessible menu | |
- Header Navigation | |
- Primary Navigation | |
- Secondary Navigation | |
- Responsive Menu | |
- Content Area | |
- Front Page | |
- Flexible Widgets | |
- Entries | |
- After Entry | |
- Entry Meta | |
- Pagination | |
- Comments | |
- Sidebars | |
- Footer Widgets | |
- Site Footer | |
- Media Queries | |
- Max-width: 1280px | |
- Max-width: 1220px | |
- Max-width: 1040px | |
- Max-width: 880px | |
*/ | |
/* # HTML5 Reset | |
---------------------------------------------------------------------------------------------------- */ | |
/* ## Baseline Normalize | |
--------------------------------------------- */ | |
/* normalize.css v3.0.1 | MIT License | git.io/normalize */ | |
html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#222}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0} | |
/* ## Box Sizing | |
--------------------------------------------- */ | |
*, | |
input[type="search"] { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
/* ## Float Clearing | |
--------------------------------------------- */ | |
.author-box:before, | |
.clearfix:before, | |
.entry:before, | |
.entry-content:before, | |
.footer-widgets:before, | |
.nav-primary:before, | |
.nav-secondary:before, | |
.pagination:before, | |
.site-container:before, | |
.site-footer:before, | |
.site-header:before, | |
.site-inner:before, | |
.widget:before, | |
.wrap:before { | |
content: " "; | |
display: table; | |
} | |
.author-box:after, | |
.clearfix:after, | |
.entry:after, | |
.entry-content:after, | |
.footer-widgets:after, | |
.nav-primary:after, | |
.nav-secondary:after, | |
.pagination:after, | |
.site-container:after, | |
.site-footer:after, | |
.site-header:after, | |
.site-inner:after, | |
.widget:after, | |
.wrap:after { | |
clear: both; | |
content: " "; | |
display: table; | |
} | |
/* # Defaults | |
---------------------------------------------------------------------------------------------------- */ | |
/* ## Typographical Elements | |
--------------------------------------------- */ | |
html { | |
font-size: 62.5%; /* 10px browser default */ | |
} | |
/* Chrome fix */ | |
body > div { | |
font-size: 1.8rem; | |
} | |
body { | |
background-color: #fff; | |
color: #222; | |
font-family: 'Baskerville', Garamond, 'Baskerville Old Face', 'Hoefler Text', 'Times New Roman', serif; | |
font-size: 18px; | |
font-size: 1.8rem; | |
font-weight: 300; | |
line-height: 1.625; | |
margin: 0; | |
} | |
a, | |
button, | |
input:focus, | |
input[type="button"], | |
input[type="reset"], | |
input[type="submit"], | |
textarea:focus, | |
.button, | |
.gallery img { | |
-webkit-transition: all 0.1s ease-in-out; | |
-moz-transition: all 0.1s ease-in-out; | |
-ms-transition: all 0.1s ease-in-out; | |
-o-transition: all 0.1s ease-in-out; | |
transition: all 0.1s ease-in-out; | |
} | |
a { | |
color: #ff4800; | |
text-decoration: underline; | |
} | |
a:hover, | |
a:focus { | |
color: #222; | |
text-decoration: none; | |
} | |
p { | |
margin: 0 0 28px; | |
padding: 0; | |
} | |
ol, | |
ul { | |
margin: 0; | |
padding: 0; | |
} | |
li { | |
list-style-type: none; | |
} | |
b, | |
strong { | |
font-weight: 700; | |
} | |
blockquote, | |
cite, | |
em, | |
i { | |
font-style: italic; | |
} | |
blockquote { | |
margin: 40px; | |
} | |
blockquote::before { | |
content: "\201C"; | |
display: block; | |
font-size: 30px; | |
height: 0; | |
left: -20px; | |
position: relative; | |
top: -10px; | |
} | |
hr { | |
border: 0; | |
border-collapse: collapse; | |
border-bottom: 1px dotted #ddd; | |
clear: left; | |
margin: 0 0 40px; | |
padding-top: 12px; | |
} | |
/* ## Headings | |
--------------------------------------------- */ | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
font-family: 'Baskerville', Garamond, 'Baskerville Old Face', 'Hoefler Text', 'Times New Roman', serif; | |
font-weight: 300; | |
line-height: 1.2; | |
margin: 0 0 20px; | |
} | |
h1 { | |
font-size: 48px; | |
font-size: 4.8rem; | |
} | |
h2 { | |
font-size: 36px; | |
font-size: 3.6rem; | |
} | |
h3 { | |
font-size: 30px; | |
font-size: 3rem; | |
} | |
h4 { | |
font-size: 24px; | |
font-size: 2.4rem; | |
} | |
h5 { | |
font-size: 20px; | |
font-size: 2rem; | |
} | |
h6 { | |
font-size: 18px; | |
font-size: 1.8rem; | |
} | |
/* ## Objects | |
--------------------------------------------- */ | |
embed, | |
iframe, | |
img, | |
object, | |
video, | |
.wp-caption { | |
max-width: 100%; | |
} | |
img { | |
height: auto; | |
} | |
.featured-content img, | |
.gallery img { | |
width: auto; | |
} | |
/* ## Gallery | |
--------------------------------------------- */ | |
.gallery { | |
overflow: hidden; | |
} | |
.gallery-item { | |
float: left; | |
margin: 0 0 28px; | |
text-align: center; | |
} | |
.gallery-columns-1 .gallery-item { | |
width: 100%; | |
} | |
.gallery-columns-2 .gallery-item { | |
width: 50%; | |
} | |
.gallery-columns-3 .gallery-item { | |
width: 33%; | |
} | |
.gallery-columns-4 .gallery-item { | |
width: 25%; | |
} | |
.gallery-columns-5 .gallery-item { | |
width: 20%; | |
} | |
.gallery-columns-6 .gallery-item { | |
width: 16.6666%; | |
} | |
.gallery-columns-7 .gallery-item { | |
width: 14.2857%; | |
} | |
.gallery-columns-8 .gallery-item { | |
width: 12.5%; | |
} | |
.gallery-columns-9 .gallery-item { | |
width: 11.1111%; | |
} | |
.gallery img { | |
border: 1px solid #ddd; | |
height: auto; | |
padding: 4px; | |
} | |
.gallery img:hover, | |
.gallery img:focus { | |
border: 1px solid #999; | |
} | |
/* ## Forms | |
--------------------------------------------- */ | |
input, | |
select, | |
textarea { | |
background-color: #fff; | |
border: 1px solid #ddd; | |
color: #222; | |
font-family: 'Roboto Condensed', sans-serif; | |
font-size: 16px; | |
font-size: 1.6rem; | |
font-weight: 300; | |
line-height: 1; | |
padding: 20px 24px; | |
width: 100%; | |
} | |
input:focus, | |
textarea:focus { | |
border: 1px solid #999; | |
outline: none; | |
} | |
input[type="checkbox"], | |
input[type="image"], | |
input[type="radio"] { | |
width: auto; | |
} | |
::-moz-placeholder { | |
color: #222; | |
opacity: 1; | |
} | |
::-webkit-input-placeholder { | |
color: #222; | |
} | |
button, | |
input[type="button"], | |
input[type="reset"], | |
input[type="submit"], | |
.button, | |
.widget .button { | |
background-color: #ff4800; | |
border: 0; | |
color: #fff; | |
cursor: pointer; | |
font-family: 'Roboto Condensed', sans-serif; | |
font-size: 18px; | |
font-size: 1.8rem; | |
letter-spacing: 1px; | |
line-height: 1; | |
padding: 20px 24px; | |
text-decoration: none; | |
text-transform: uppercase; | |
width: auto; | |
} | |
button:hover, | |
input:hover[type="button"], | |
input:hover[type="reset"], | |
input:hover[type="submit"], | |
.button:hover, | |
.widget .button:hover, | |
button:focus, | |
input:focus[type="button"], | |
input:focus[type="reset"], | |
input:focus[type="submit"], | |
.button:focus, | |
.widget .button:focus { | |
background-color: #111; | |
color: #fff; | |
} | |
.entry-content .button:hover, | |
.entry-content .button:focus { | |
color: #fff; | |
} | |
.footer-widgets button:hover, | |
.footer-widgets input:hover[type="button"], | |
.footer-widgets input:hover[type="reset"], | |
.footer-widgets input:hover[type="submit"], | |
.footer-widgets .button:hover, | |
.footer-widgets button:focus, | |
.footer-widgets input:focus[type="button"], | |
.footer-widgets input:focus[type="reset"], | |
.footer-widgets input:focus[type="submit"], | |
.footer-widgets .button:focus, | |
.front-page-3 button:hover, | |
.front-page-3 input:hover[type="button"], | |
.front-page-3 input:hover[type="reset"], | |
.front-page-3 input:hover[type="submit"], | |
.front-page-3 .button:hover, | |
.front-page-3 button:focus, | |
.front-page-3 input:focus[type="button"], | |
.front-page-3 input:focus[type="reset"], | |
.front-page-3 input:focus[type="submit"], | |
.front-page-3 .button:focus { | |
background-color: #fff; | |
color: #222; | |
} | |
button:disabled, | |
button:disabled:hover, | |
input:disabled, | |
input:disabled:hover, | |
input[type="button"]:disabled, | |
input[type="button"]:disabled:hover, | |
input[type="reset"]:disabled, | |
input[type="reset"]:disabled:hover, | |
input[type="submit"]:disabled, | |
input[type="submit"]:disabled:hover { | |
background-color: #ddd; | |
color: #777; | |
cursor: not-allowed; | |
} | |
.button { | |
display: inline-block; | |
} | |
input[type="search"]::-webkit-search-cancel-button, | |
input[type="search"]::-webkit-search-results-button { | |
display: none; | |
} | |
.error404 .entry-content input[type="search"], | |
.post-password-form input[type="password"] { | |
margin-bottom: 10px; | |
} | |
/* ## Tables | |
--------------------------------------------- */ | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
line-height: 2; | |
margin-bottom: 40px; | |
width: 100%; | |
} | |
tbody { | |
border-bottom: 1px dotted #ddd; | |
} | |
td, | |
th { | |
text-align: left; | |
} | |
td { | |
border-top: 1px dotted #ddd; | |
padding: 6px 0; | |
} | |
th { | |
font-weight: 300; | |
} | |
/* ## Screen reader text | |
--------------------------------------------- */ | |
.screen-reader-text, | |
.screen-reader-text span, | |
.screen-reader-shortcut { | |
background-color: #fff; | |
border: 0; | |
clip: rect(0, 0, 0, 0); | |
color: #222; | |
font-family: sans-serif; | |
height: 1px; | |
overflow: hidden; | |
position: absolute !important; | |
width: 1px; | |
} | |
.screen-reader-text:focus, | |
.screen-reader-shortcut:focus, | |
.genesis-nav-menu .search input[type="submit"]:focus, | |
.widget_search input[type="submit"]:focus { | |
box-shadow: 0 0 2px 2px rgba(0,0,0,.6); | |
clip: auto !important; | |
display: block; | |
font-size: 1em; | |
font-weight: bold; | |
height: auto; | |
padding: 15px 23px 14px; | |
text-decoration: none; | |
width: auto; | |
z-index: 100000; /* Above WP toolbar. */ | |
} | |
.more-link { | |
position: relative; | |
} | |
/* # Structure and Layout | |
---------------------------------------------------------------------------------------------------- */ | |
/* ## Site Containers | |
--------------------------------------------- */ | |
.site-inner, | |
.wrap { | |
margin: 0 auto; | |
max-width: 1200px; | |
} | |
.site-inner { | |
clear: both; | |
padding-top: 50px; | |
} | |
.front-page .site-inner { | |
max-width: 100%; | |
padding: 0; | |
} | |
.landing-page .site-inner { | |
max-width: 960px; | |
} | |
/* ## Column Widths and Positions | |
--------------------------------------------- */ | |
/* ### Content */ | |
.content { | |
float: right; | |
width: 840px; | |
} | |
.content-sidebar .content { | |
float: left; | |
} | |
.full-width-content .content { | |
width: 100%; | |
} | |
/* ### Primary Sidebar */ | |
.sidebar-primary { | |
float: right; | |
margin-bottom: 40px; | |
width: 300px; | |
} | |
.sidebar-content .sidebar-primary { | |
float: left; | |
} | |
/* ## Column Classes | |
--------------------------------------------- */ | |
/* Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css */ | |
.five-sixths, | |
.four-sixths, | |
.one-fourth, | |
.one-half, | |
.one-sixth, | |
.one-third, | |
.three-fourths, | |
.three-sixths, | |
.two-fourths, | |
.two-sixths, | |
.two-thirds { | |
float: left; | |
margin-left: 2.564102564102564%; | |
} | |
.one-half, | |
.three-sixths, | |
.two-fourths { | |
width: 48.717948717948715%; | |
} | |
.one-third, | |
.two-sixths { | |
width: 31.623931623931625%; | |
} | |
.four-sixths, | |
.two-thirds { | |
width: 65.81196581196582%; | |
} | |
.one-fourth { | |
width: 23.076923076923077%; | |
} | |
.three-fourths { | |
width: 74.35897435897436%; | |
} | |
.one-sixth { | |
width: 14.52991452991453%; | |
} | |
.five-sixths { | |
width: 82.90598290598291%; | |
} | |
.first { | |
clear: both; | |
margin-left: 0; | |
} | |
/* # Common Classes | |
---------------------------------------------------------------------------------------------------- */ | |
/* ## Avatar | |
--------------------------------------------- */ | |
.avatar { | |
border-radius: 50%; | |
float: left; | |
} | |
.alignleft .avatar, | |
.author-box .avatar { | |
margin-right: 24px; | |
} | |
.alignright .avatar { | |
margin-left: 24px; | |
} | |
.comment .avatar { | |
margin: 0 16px 24px 0; | |
} | |
/* ## Genesis | |
--------------------------------------------- */ | |
.breadcrumb { | |
font-family: 'Roboto Condensed', sans-serif; | |
font-size: 14px; | |
font-size: 1.4rem; | |
letter-spacing: 2px; | |
margin-bottom: 40px; | |
text-transform: uppercase; | |
} | |
.author-box { | |
background-color: #222; | |
color: #fff; | |
margin-bottom: 40px; | |
padding: 40px; | |
} | |
.author-box a:focus, | |
.author-box a:hover { | |
color: #fff; | |
} | |
.content .author-box-title { | |
margin-bottom: 4px; | |
} | |
.archive-description p:last-child, | |
.author-box p:last-child { | |
margin-bottom: 0; | |
} | |
/* ## Search Form | |
--------------------------------------------- */ | |
.search-form { | |
overflow: hidden; | |
} | |
.site-header .search-form { | |
float: right; | |
margin-top: 12px; | |
} | |
.entry-content .search-form, | |
.site-header .search-form { | |
width: 50%; | |
} | |
.entry-content .search-form { | |
margin-bottom: 60px; | |
} | |
.genesis-nav-menu .search input[type="submit"], | |
.widget_search input[type="submit"] { | |
border: 0; | |
clip: rect(0, 0, 0, 0); | |
height: 1px; | |
margin: -1px; | |
padding: 0; | |
position: absolute; | |
width: 1px; | |
} | |
/* ## Titles | |
--------------------------------------------- */ | |
.entry-title { | |
font-size: 48px; | |
font-size: 4.8rem; | |
margin-bottom: 40px; | |
} | |
.entry-title a, | |
.sidebar .widget-title a { | |
color: #222; | |
text-decoration: none; | |
} | |
.entry-title a:focus, | |
.entry-title a:hover { | |
color: #ff4800; | |
} | |
.author-box-title, | |
.archive-title, | |
.page-title, | |
.widget-title { | |
color: #ff4800; | |
font-family: 'Roboto Condensed', sans-serif; | |
font-size: 18px; | |
font-size: 1.8rem; | |
letter-spacing: 2px; | |
margin-bottom: 30px; | |
text-transform: uppercase; | |
} | |
.large-title { | |
font-size: 48px; | |
font-size: 4.8rem; | |
line-height: 1.2; | |
} | |
.small-title { | |
font-size: 36px; | |
font-size: 3.6rem; | |
line-height: 1.2; | |
} | |
/* ## WordPress | |
--------------------------------------------- */ | |
a.aligncenter img { | |
display: block; | |
margin: 0 auto; | |
} | |
a.alignnone { | |
display: inline-block; | |
} | |
.alignleft { | |
float: left; | |
text-align: left; | |
} | |
.alignright { | |
float: right; | |
text-align: right; | |
} | |
a.alignleft, | |
a.alignnone, | |
a.alignright { | |
max-width: 100%; | |
} | |
img.centered, | |
.aligncenter { | |
display: block; | |
margin: 0 auto 24px; | |
} | |
img.alignnone, | |
.alignnone { | |
margin-bottom: 12px; | |
} | |
a.alignleft, | |
img.alignleft, | |
.wp-caption.alignleft { | |
margin: 0 24px 24px 0; | |
} | |
a.alignright, | |
img.alignright, | |
.wp-caption.alignright { | |
margin: 0 0 24px 24px; | |
} | |
.wp-caption-text { | |
font-size: 14px; | |
font-size: 1.4rem; | |
font-weight: 700; | |
text-align: center; | |
} | |
.entry-content p.wp-caption-text { | |
margin-bottom: 0; | |
} | |
.gallery-caption, | |
.entry-content .gallery-caption { | |
margin: 0 0 10px; | |
} | |
.wp-audio-shortcode, | |
.wp-playlist, | |
.wp-video { | |
margin: 0 0 28px; | |
} | |
/* # Widgets | |
---------------------------------------------------------------------------------------------------- */ | |
.widget { | |
word-wrap: break-word; | |
margin-bottom: 60px; | |
} | |
.widget-area .widget:last-of-type, | |
.widget p:last-child, | |
.widget ul > li:last-child { | |
margin-bottom: 0; | |
} | |
.widget li { | |
margin-bottom: 10px; | |
padding-bottom: 10px; | |
} | |
.content .widget li a, | |
.sidebar .widget li a { | |
color: #222; | |
text-decoration: none; | |
} | |
.widget li a:focus, | |
.widget li a:hover { | |
color: #ff4800; | |
} | |
.widget .list li { | |
border-bottom: 1px dotted #ddd; | |
font-family: 'Roboto Condensed', sans-serif; | |
text-transform: uppercase; | |
} | |
.widget ol > li { | |
list-style-position: inside; | |
list-style-type: decimal; | |
padding-left: 20px; | |
text-indent: -20px; | |
} | |
.widget li li { | |
border: 0; | |
margin: 0 0 0 30px; | |
padding: 0; | |
} | |
.widget_calendar table { | |
width: 100%; | |
} | |
.widget_calendar td, | |
.widget_calendar th { | |
text-align: center; | |
} | |
/* ## Featured Content | |
--------------------------------------------- */ | |
.featuredpage .entry { | |
margin-bottom: 0; | |
padding: 0; | |
} | |
.featuredpost .entry { | |
margin-bottom: 20px; | |
padding: 0 0 24px; | |
} | |
.featured-content .entry > a img { | |
margin-bottom: -8px; | |
} | |
.featured-content .entry-title { | |
font-size: 30px; | |
font-size: 3rem; | |
margin-bottom: 20px; | |
} | |
.featured-content ul, | |
.featured-content .more-from-category, | |
.featured-content .widget-title { | |
clear: both; | |
} | |
.flexible-widgets .featured-content .entry { | |
padding: 0; | |
position: relative; | |
} | |
.flexible-widgets .featured-content .entry a.alignnone { | |
margin-bottom: 0; | |
} | |
.flexible-widgets .featured-content .has-post-thumbnail .alignnone + .entry-header { | |
background: -moz-linear-gradient(top, rgba(34,34,34,0.7) 0%, rgba(34,34,34,0) 100%); | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(34,34,34,0.7)), color-stop(100%,rgba(34,34,34,0))); | |
background: -webkit-linear-gradient(top, rgba(34,34,34,0.7) 0%,rgba(34,34,34,0) 100%); | |
background: -o-linear-gradient(top, rgba(34,34,34,0.7) 0%,rgba(34,34,34,0) 100%); | |
background: -ms-linear-gradient(top, rgba(34,34,34,0.7) 0%,rgba(34,34,34,0) 100%); | |
background: linear-gradient(to bottom, rgba(34,34,34,0.7) 0%,rgba(34,34,34,0) 100%); | |
color: #fff; | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3222222', endColorstr='#00222222',GradientType=0 ); | |
left: 0; | |
padding: 40px; | |
position: absolute; | |
top: 0; | |
width: 100%; | |
} | |
.flexible-widgets .featured-content .has-post-thumbnail .alignnone + .entry-header .entry-title a { | |
color: #fff; | |
text-decoration: none; | |
} | |
.flexible-widgets .featured-content .has-post-thumbnail .alignnone + .entry-header .entry-title a:focus, | |
.flexible-widgets .featured-content .has-post-thumbnail .alignnone + .entry-header .entry-title a:hover { | |
color: #ff4800; | |
} | |
.flexible-widgets .featured-content .entry a.alignnone + .entry-content, | |
.flexible-widgets .featured-content .entry a.alignnone + .entry-header + .entry-content, | |
.flexible-widgets .featured-content .entry a.alignnone + .entry-meta { | |
margin-top: 30px; | |
} | |
/* # Plugins | |
---------------------------------------------------------------------------------------------------- */ | |
/* ## Genesis eNews Extended | |
--------------------------------------------- */ | |
.enews-widget input { | |
margin-bottom: 16px; | |
} | |
.enews-widget input[type="submit"] { | |
margin: 0; | |
width: 100%; | |
} | |
.enews form + p { | |
margin-top: 24px; | |
} | |
/* ## Jetpack | |
--------------------------------------------- */ | |
#wpstats { | |
display: none; | |
} | |
/* # Skip Links | |
---------------------------------------------------------------------------------------------------- */ | |
.genesis-skip-link { | |
margin: 0; | |
} | |
.genesis-skip-link li { | |
height: 0; | |
width: 0; | |
list-style: none; | |
} | |
/* Display outline on focus */ | |
:focus { | |
color: #222; | |
outline: #ccc solid 1px; | |
} | |
/* # Site Header | |
---------------------------------------------------------------------------------------------------- */ | |
.site-header { | |
background-color: #fff; | |
} | |
.site-header > .wrap { | |
padding: 60px 0; | |
} | |
/* ## Title Area | |
--------------------------------------------- */ | |
.title-area { | |
float: left; | |
padding: 16px 0; | |
width: 300px; | |
} | |
.header-image .title-area { | |
padding: 0; | |
} | |
.site-title { | |
font-family: 'Roboto Condensed', sans-serif; | |
font-size: 24px; | |
font-size: 2.4rem; | |
font-weight: 300; | |
letter-spacing: 2px; | |
line-height: 1.2; | |
margin-bottom: 0; | |
text-transform: uppercase; | |
} | |
.site-title a, | |
.site-title a:focus, | |
.site-title a:hover { | |
color: #222; | |
text-decoration: none; | |
} | |
.header-image .site-title > a { | |
float: left; | |
min-height: 60px; | |
width: 100%; | |
} | |
.site-header .site-description { | |
display: none; | |
} | |
.header-image .site-title { | |
display: block; | |
text-indent: -9999px; | |
} | |
/* ## Widget Area | |
--------------------------------------------- */ | |
.site-header .nav-primary { | |
float: right; | |
text-align: right; | |
width: 840px; | |
} | |
/* # After Header | |
---------------------------------------------------------------------------------------------------- */ | |
.after-header { | |
border-bottom: 1px solid #ff4800; | |
margin-bottom: 50px; | |
padding: 70px 0; | |
} | |
.front-page .after-header { | |
margin-bottom: 0; | |
} | |
.after-header .archive-description p, | |
.after-header .page-description p, | |
.after-header .site-description { | |
clear: both; | |
font-size: 48px; | |
font-size: 4.8rem; | |
line-height: 1.2; | |
max-width: 720px; | |
} | |
/* # Site Navigation | |
---------------------------------------------------------------------------------------------------- */ | |
.genesis-nav-menu { | |
clear: both; | |
line-height: 1; | |
width: 100%; | |
} | |
.genesis-nav-menu .menu-item { | |
display: inline-block; | |
text-align: left; | |
} | |
.genesis-nav-menu > .menu-item { | |
margin: 0 24px; | |
} | |
.genesis-nav-menu a { | |
border-bottom: 2px solid transparent; | |
color: #222; | |
display: block; | |
padding: 20px 0; | |
text-decoration: none; | |
} | |
.genesis-nav-menu > li.menu-item-has-children > a:focus, | |
.genesis-nav-menu > li.menu-item-has-children > a:hover { | |
border-color: transparent; | |
} | |
.genesis-nav-menu > .current-menu-item > a, | |
.genesis-nav-menu > li > a:focus, | |
.genesis-nav-menu > li > a:hover { | |
border-bottom: 2px solid #ff4800; | |
} | |
.genesis-nav-menu .sub-menu a:focus, | |
.genesis-nav-menu .sub-menu a:hover { | |
color: #ff4800; | |
} | |
.genesis-nav-menu .sub-menu { | |
border-top: 2px solid #ff4800; | |
left: -9999px; | |
margin-top: -2px; | |
opacity: 0; | |
position: absolute; | |
-webkit-transition: opacity .4s ease-in-out; | |
-moz-transition: opacity .4s ease-in-out; | |
-ms-transition: opacity .4s ease-in-out; | |
-o-transition: opacity .4s ease-in-out; | |
transition: opacity .4s ease-in-out; | |
width: 200px; | |
z-index: 99; | |
} | |
.genesis-nav-menu .sub-menu a { | |
background-color: #fff; | |
border: 1px solid #eee; | |
border-top: 0; | |
font-size: 14px; | |
font-size: 1.4rem; | |
padding: 20px; | |
position: relative; | |
width: 200px; | |
word-wrap: break-word; | |
} | |
.genesis-nav-menu .sub-menu .sub-menu { | |
margin: -57px 0 0 199px; | |
} | |
.genesis-nav-menu .menu-item:hover, | |
.genesis-nav-menu .menu-item:focus { | |
position: static; | |
} | |
.genesis-nav-menu .menu-item:hover > .sub-menu, | |
.genesis-nav-menu .menu-item:focus > .sub-menu { | |
left: auto; | |
opacity: 1; | |
} | |
.genesis-nav-menu > .first { | |
margin-left: 0; | |
} | |
.genesis-nav-menu > .last { | |
margin-right: 0; | |
} | |
.genesis-nav-menu > .right { | |
color: #fff; | |
float: right; | |
list-style-type: none; | |
padding: 20px 0; | |
} | |
.genesis-nav-menu > .right > a { | |
display: inline; | |
padding: 0; | |
} | |
.genesis-nav-menu > .rss > a { | |
margin-left: 48px; | |
} | |
.genesis-nav-menu > .search { | |
padding: 10px 0 0; | |
} | |
/* ## Accessible Menu | |
--------------------------------------------- */ | |
.menu .menu-item:focus { | |
position: static; | |
} | |
.menu .menu-item > a:focus + ul.sub-menu, | |
.menu .menu-item.sfHover > ul.sub-menu { | |
left: auto; | |
opacity: 1; | |
} | |
/* ## Primary Navigation | |
--------------------------------------------- */ | |
.nav-primary .genesis-nav-menu li li { | |
margin-left: 0; | |
} | |
/* ## Secondary Navigation | |
--------------------------------------------- */ | |
.nav-secondary { | |
background-color: #222; | |
font-family: 'Roboto Condensed', sans-serif; | |
} | |
.nav-secondary .genesis-nav-menu a { | |
color: #ccc; | |
text-decoration: none; | |
} | |
.nav-secondary .genesis-nav-menu a:focus, | |
.nav-secondary .genesis-nav-menu a:hover, | |
.nav-secondary .genesis-nav-menu .current-menu-item > a { | |
color: #fff; | |
} | |
.nav-secondary .genesis-nav-menu .sub-menu a { | |
color: #222; | |
} | |
.nav-secondary .genesis-nav-menu .sub-menu a:focus, | |
.nav-secondary .genesis-nav-menu .sub-menu a:hover, | |
.nav-secondary .genesis-nav-menu .sub-menu .current-menu-item > a { | |
color: #ff4800; | |
} | |
/* Responsive Menu | |
--------------------------------------------- */ | |
.sub-menu-toggle, | |
.menu-toggle { | |
display: none; | |
visibility: hidden; | |
} | |
/* # Content Area | |
---------------------------------------------------------------------------------------------------- */ | |
.add-color .after-header, | |
.add-color .site-header { | |
background-color: #ff4800; | |
} | |
.add-color .after-header a, | |
.add-color .after-header, | |
.add-color .site-header .genesis-nav-menu > li > a, | |
.add-color .site-header .site-title a, | |
.add-color .site-header { | |
color: #fff; | |
} | |
.add-color .after-header a:focus, | |
.add-color .after-header a:hover, | |
.add-color .after-header .page-title { | |
color: #222; | |
} | |
.add-color .nav-primary .genesis-nav-menu > li > a:focus, | |
.add-color .nav-primary .genesis-nav-menu > li > a:hover, | |
.add-color .nav-primary .sub-menu { | |
border-color: #222; | |
} | |
.add-black .site-header, | |
.add-black .after-header { | |
background-color: #222; | |
} | |
.add-black .after-header a, | |
.add-black .after-header, | |
.add-black .site-header .genesis-nav-menu > li > a, | |
.add-black .site-header .site-title a, | |
.add-black .site-header { | |
color: #fff; | |
} | |
.add-black .after-header a:focus, | |
.add-black .after-header a:hover { | |
color: #ff4800; | |
} | |
/* ## Front Page | |
--------------------------------------------- */ | |
.front-page-1 { | |
border-bottom: 1px solid #ff4800; | |
} | |
.front-page-3, | |
.front-page-3 a { | |
background-color: #222; | |
color: #fff; | |
} | |
.front-page-3 a:focus, | |
.front-page-3 a:hover { | |
color: #ff4800; | |
} | |
.image-section-1, | |
.image-section-2 { | |
background-position: top; | |
background-size: cover; | |
min-height: 500px; | |
} | |
/* ## Flexible Widgets | |
--------------------------------------------- */ | |
.flexible-widgets { | |
overflow: hidden; | |
padding: 100px 0; | |
} | |
.flexible-widgets.widget-full .featuredpost .entry, | |
.flexible-widgets.widget-halves.uneven .featuredpost.widget:last-of-type .entry, | |
.widget-area.flexible-widgets .widget { | |
float: left; | |
margin-bottom: 2.564102564102564%; | |
margin-left: 2.564102564102564%; | |
} | |
.flexible-widgets.widget-uneven .widget:nth-of-type(6n+1), | |
.widget-area.flexible-widgets .widget:first-of-type { | |
clear: both; | |
margin-left: 0; | |
width: 100%; | |
} | |
.site-inner .flexible-widgets.widget-area .widget:last-of-type, | |
.flexible-widgets.widget-full .widget { | |
margin-bottom: 0; | |
} | |
.flexible-widgets.widget-full .widget:first-of-type, | |
.flexible-widgets.widget-halves.uneven .widget:last-of-type { | |
margin-left: 0; | |
width: 100%; | |
} | |
.flexible-widgets.widget-full .featuredpost .entry, | |
.flexible-widgets.widget-halves .widget, | |
.flexible-widgets.widget-halves.uneven .featuredpost.widget:last-of-type .entry, | |
.flexible-widgets.widget-uneven .widget:nth-of-type(6n+5), | |
.flexible-widgets.widget-uneven .widget:nth-of-type(6n+6) { | |
width: 48.717948717948715%; | |
} | |
.flexible-widgets.widget-thirds .widget, | |
.flexible-widgets.widget-uneven .widget:nth-of-type(6n+2), | |
.flexible-widgets.widget-uneven .widget:nth-of-type(6n+3), | |
.flexible-widgets.widget-uneven .widget:nth-of-type(6n+4) { | |
width: 31.623931623931625%; | |
} | |
.flexible-widgets.widget-fourths .widget { | |
width: 23.076923076923077%; | |
} | |
.flexible-widgets.widget-fourths .widget:nth-of-type(4n+2), | |
.flexible-widgets.widget-full .featuredpost .entry:nth-of-type(odd), | |
.flexible-widgets.widget-halves .widget:nth-of-type(2n+2), | |
.flexible-widgets.widget-halves.uneven .featuredpost.widget:last-of-type .entry:nth-of-type(odd), | |
.flexible-widgets.widget-thirds .widget:nth-of-type(3n+2), | |
.flexible-widgets.widget-uneven .widget:nth-of-type(6n+2), | |
.flexible-widgets.widget-uneven .widget:nth-of-type(6n+5) { | |
clear: left; | |
margin-left: 0; | |
} | |
/* ## Entries | |
--------------------------------------------- */ | |
.entry { | |
margin-bottom: 100px; | |
} | |
.content .entry-image { | |
margin-bottom: 40px; | |
} | |
.entry-content ol, | |
.entry-content ul { | |
margin-bottom: 28px; | |
margin-left: 40px; | |
} | |
.entry-content ol > li { | |
list-style-type: decimal; | |
} | |
.entry-content ul > li { | |
list-style-type: disc; | |
} | |
.entry-content ol ol, | |
.entry-content ul ul { | |
margin-bottom: 0; | |
} | |
.entry-content code { | |
background-color: #222; | |
color: #ddd; | |
} | |
/* ## Entry Meta | |
--------------------------------------------- */ | |
p.entry-meta { | |
font-family: 'Roboto Condensed', sans-serif; | |
font-size: 16px; | |
font-size: 1.6rem; | |
margin-bottom: 0; | |
} | |
.entry-header .entry-meta, | |
.featured-content .entry-meta { | |
color: #ff4800; | |
letter-spacing: 2px; | |
margin-bottom: 24px; | |
text-transform: uppercase; | |
} | |
.entry-footer .entry-meta { | |
border-top: 1px dotted #ddd; | |
padding-top: 24px; | |
} | |
.entry-categories, | |
.entry-tags { | |
display: block; | |
} | |
.entry-comments-link::before { | |
content: "\2014"; | |
margin: 0 6px 0 2px; | |
} | |
/* ## After Entry | |
--------------------------------------------- */ | |
.after-entry { | |
margin-bottom: 40px; | |
} | |
/* ## Pagination | |
--------------------------------------------- */ | |
.pagination { | |
clear: both; | |
margin: 40px 0; | |
} | |
.adjacent-entry-pagination { | |
margin-bottom: 0; | |
} | |
.archive-pagination li { | |
display: inline; | |
} | |
.archive-pagination li a { | |
font-family: 'Roboto Condensed', sans-serif; | |
color: #222; | |
cursor: pointer; | |
display: inline-block; | |
padding: 8px 12px; | |
text-decoration: none; | |
} | |
.archive-pagination li a:focus, | |
.archive-pagination li a:hover, | |
.archive-pagination .active a { | |
color: #ff4800; | |
} | |
/* ## Comments | |
--------------------------------------------- */ | |
.comment-respond, | |
.entry-comments, | |
.entry-pings { | |
margin-bottom: 60px; | |
} | |
.comment-content { | |
clear: both; | |
} | |
.comment-list li { | |
margin-top: 24px; | |
padding: 32px; | |
} | |
.comment-list li li { | |
margin-right: -32px; | |
} | |
.comment-respond input[type="email"], | |
.comment-respond input[type="text"], | |
.comment-respond input[type="url"] { | |
width: 50%; | |
} | |
.comment-respond label { | |
display: block; | |
margin-right: 12px; | |
} | |
.comment-meta, | |
.entry-comments .comment-header, | |
.entry-comments .comment-reply { | |
font-family: 'Roboto Condensed', sans-serif; | |
font-weight: 300; | |
} | |
.entry-comments .comment-author { | |
margin-bottom: 0; | |
} | |
.comment-author .fn { | |
font-weight: 400; | |
} | |
.entry-pings .reply { | |
display: none; | |
} | |
/* # Sidebars | |
---------------------------------------------------------------------------------------------------- */ | |
.sidebar { | |
font-size: 16px; | |
font-size: 1.6rem; | |
} | |
/* # Footer Widgets | |
---------------------------------------------------------------------------------------------------- */ | |
.footer-widgets { | |
background-color: #222; | |
clear: both; | |
font-family: 'Roboto Condensed', sans-serif; | |
font-size: 16px; | |
font-size: 1.6rem; | |
font-weight: 300; | |
} | |
.footer-widgets, | |
.footer-widgets a, | |
.footer-widgets a.button { | |
color: #fff; | |
} | |
.footer-widgets input { | |
border: 1px solid #222; | |
} | |
.footer-widgets a:focus, | |
.footer-widgets a:hover { | |
color: #ff4800; | |
} | |
.footer-widgets li { | |
border-bottom: 1px dotted #666; | |
margin-bottom: 10px; | |
padding-bottom: 10px; | |
} | |
.footer-widgets p:last-child { | |
margin-bottom: 0; | |
} | |
/* # Site Footer | |
---------------------------------------------------------------------------------------------------- */ | |
.site-footer { | |
background-color: #222; | |
color: #fff; | |
font-family: 'Roboto Condensed', sans-serif; | |
font-size: 14px; | |
font-size: 1.4rem; | |
font-weight: 300; | |
line-height: 1; | |
padding: 60px 0; | |
} | |
.site-footer p { | |
margin-bottom: 0; | |
} | |
.site-footer a { | |
color: #fff; | |
} | |
.site-footer a:focus, | |
.site-footer a:hover { | |
color: #ff4800; | |
} | |
/* # Media Queries | |
---------------------------------------------------------------------------------------------------- */ | |
@media only screen and (max-width: 1280px) { | |
.site-inner, | |
.wrap { | |
max-width: 1140px; | |
} | |
.content, | |
.site-header .nav-primary { | |
width: 780px; | |
} | |
} | |
@media only screen and (max-width: 1220px) { | |
.site-inner, | |
.wrap { | |
max-width: 960px; | |
} | |
.content, | |
.site-header .nav-primary { | |
width: 600px; | |
} | |
.image-section-1, | |
.image-section-2 { | |
min-height: 400px; | |
} | |
} | |
@media only screen and (max-width: 1040px) { | |
.landing-page .site-inner, | |
.site-inner, | |
.wrap { | |
max-width: 800px; | |
} | |
.content, | |
.sidebar-primary { | |
width: 100%; | |
} | |
.site-header .nav-primary { | |
width: 500px; | |
} | |
} | |
@media only screen and (max-width: 880px) { | |
.landing-page .site-inner, | |
.site-inner, | |
.wrap { | |
max-width: 600px; | |
padding-left: 5%; | |
padding-right: 5%; | |
} | |
.five-sixths, | |
.four-sixths, | |
.one-fourth, | |
.one-half, | |
.one-sixth, | |
.one-third, | |
.three-fourths, | |
.three-sixths, | |
.two-fourths, | |
.two-sixths, | |
.two-thirds { | |
margin: 0; | |
width: 100%; | |
} | |
.site-header .nav-primary, | |
.title-area { | |
width: 100%; | |
} | |
.title-area { | |
margin-top: 20px; | |
padding: 16px; | |
} | |
.site-header .nav-primary { | |
float: none; | |
text-align: center; | |
padding-bottom: 20px; | |
} | |
.site-header > .wrap { | |
padding: 0; | |
max-width: 100%; | |
} | |
.header-image .site-title > a { | |
background-position: center !important; | |
background-size: contain !important; | |
} | |
.genesis-nav-menu li, | |
.site-header ul.genesis-nav-menu, | |
.site-header .search-form { | |
float: none; | |
} | |
.genesis-nav-menu, | |
.site-header .title-area, | |
.site-header .search-form, | |
.site-title { | |
text-align: center; | |
} | |
.site-header .search-form { | |
margin: 16px auto; | |
} | |
.genesis-nav-menu li.right { | |
display: none; | |
} | |
.js nav { | |
display: none; | |
position: relative; | |
} | |
.js nav .wrap { | |
padding: 0; | |
} | |
.js nav.pagination { | |
display: block; | |
} | |
.menu-toggle, | |
.sub-menu-toggle { | |
background-color: #222; | |
color: #fff; | |
display: block; | |
margin: 0 auto; | |
overflow: hidden; | |
text-align: center; | |
visibility: visible; | |
} | |
.menu-toggle { | |
position: relative; | |
right: 0; | |
z-index: 1000; | |
width: 100%; | |
} | |
.menu-toggle:before, | |
.menu-toggle.activated:before { | |
color: #fff; | |
content: "\f333"; | |
display: inline-block; | |
font: normal 20px/1 'dashicons'; | |
margin: 0 auto; | |
padding-right: 10px; | |
text-rendering: auto; | |
-webkit-transform: translate(0, 0); | |
-ms-transform: translate(0, 0); | |
transform: translate(0, 0); | |
vertical-align: bottom; | |
} | |
.sub-menu-toggle { | |
float: right; | |
padding: 18px; | |
position: absolute; | |
right: 0; | |
top: 0; | |
z-index: 100; | |
} | |
.sub-menu-toggle:before { | |
content: "\f347"; | |
display: inline-block; | |
font: normal 16px/1 'dashicons'; | |
text-rendering: auto; | |
-webkit-transform: translate(0, 0); | |
-ms-transform: translate(0, 0); | |
transform: translate(0, 0); | |
} | |
.sub-menu-toggle.activated:before { | |
content: "\f343"; | |
} | |
.js .genesis-nav-menu .menu-item { | |
display: block; | |
float: none; | |
position: relative; | |
text-align: left; | |
} | |
.js .genesis-nav-menu .menu-item:hover { | |
position: relative; | |
} | |
.js .genesis-nav-menu .menu-item a { | |
border: none; | |
color: #fff; | |
font-family: 'Roboto Condensed', sans-serif; | |
padding: 20px; | |
width: 100%; | |
} | |
.js .genesis-nav-menu .menu-item a:hover, | |
.js .genesis-nav-menu .sub-menu { | |
border: none; | |
} | |
.js .genesis-nav-menu .menu-item > a:focus ul.sub-menu, | |
.js .genesis-nav-menu .menu-item > a:focus ul.sub-menu .sub-menu { | |
left: 0; | |
margin-left: 0; | |
} | |
.js .genesis-nav-menu > .menu-item-has-children > a:after { | |
content: none; | |
} | |
.js .genesis-nav-menu .sub-menu { | |
clear: both; | |
display: none; | |
margin: 0; | |
opacity: 1; | |
position: static; | |
width: 100%; | |
} | |
.js .genesis-nav-menu .sub-menu .sub-menu { | |
margin: 0; | |
} | |
.js .genesis-nav-menu .sub-menu a { | |
border: none; | |
} | |
.js nav .genesis-nav-menu .menu-item .sub-menu li a, | |
.js nav .genesis-nav-menu .menu-item .sub-menu li a:hover, | |
.js nav button:hover, | |
.js .menu-toggle:hover, | |
.js .nav-primary { | |
background-color: #222; | |
color: #fff; | |
} | |
.js nav .genesis-nav-menu .menu-item .sub-menu li a:focus, | |
.js nav .genesis-nav-menu .menu-item a:focus, | |
.js nav button:focus, | |
.js .menu-toggle:focus { | |
background-color: #222; | |
color: #ff4800; | |
} | |
.image-section-1, | |
.image-section-2 { | |
min-height: 200px; | |
} | |
.site-container .flexible-widgets.widget-fourths .widget, | |
.site-container .flexible-widgets.widget-full .featuredpost .entry, | |
.site-container .flexible-widgets.widget-uneven .widget, | |
.site-container .flexible-widgets.widget-halves .widget, | |
.site-container .flexible-widgets.widget-thirds .widget { | |
float: none; | |
margin: 0 auto 40px; | |
width: 100%; | |
} | |
.site-container .flexible-widgets .widget-wrap .entry:last-of-type { | |
margin: 0; | |
} | |
.site-container .flexible-widgets .widget-wrap .entry:last-of-type + h4, | |
.site-container .flexible-widgets .widget-wrap .entry:last-of-type + p, | |
.site-container .flexible-widgets .widget-wrap .entry:last-of-type + ul { | |
margin-top: 30px; | |
} | |
.after-header .archive-description p, | |
.after-header .page-description p, | |
.after-header .site-description, | |
.large-title { | |
font-size: 30px; | |
font-size: 3.6rem; | |
} | |
.flexible-widgets .featured-content .has-post-thumbnail .alignnone + .entry-header { | |
padding: 20px; | |
} | |
.archive-pagination li a { | |
margin-bottom: 4px; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Workstation Theme Setting Defaults | |
add_filter( 'genesis_theme_settings_defaults', 'workstation_theme_defaults' ); | |
function workstation_theme_defaults( $defaults ) { | |
$defaults['blog_cat_num'] = 6; | |
$defaults['content_archive'] = 'full'; | |
$defaults['content_archive_limit'] = 0; | |
$defaults['content_archive_thumbnail'] = 1; | |
$defaults['image_alignment'] = ''; | |
$defaults['image_size'] = 'featured-content-lg'; | |
$defaults['posts_nav'] = 'numeric'; | |
$defaults['site_layout'] = 'sidebar-content'; | |
return $defaults; | |
} | |
//* Workstation Theme Setup | |
add_action( 'after_switch_theme', 'workstation_theme_setting_defaults' ); | |
function workstation_theme_setting_defaults() { | |
if( function_exists( 'genesis_update_settings' ) ) { | |
genesis_update_settings( array( | |
'blog_cat_num' => 6, | |
'content_archive' => 'full', | |
'content_archive_limit' => 0, | |
'content_archive_thumbnail' => 1, | |
'image_alignment' => '', | |
'image_size' => 'featured-content-lg', | |
'posts_nav' => 'numeric', | |
'site_layout' => 'sidebar-content', | |
) ); | |
} | |
update_option( 'posts_per_page', 6 ); | |
} | |
//* Simple Social Icon Defaults | |
add_filter( 'simple_social_default_styles', 'workstation_social_default_styles' ); | |
function workstation_social_default_styles( $defaults ) { | |
$args = array( | |
'alignment' => 'aligncenter', | |
'background_color' => '#000000', | |
'background_color_hover' => '#222222', | |
'border_radius' => 4, | |
'icon_color' => '#ffffff', | |
'icon_color_hover' => '#ffffff', | |
'size' => 40, | |
); | |
$args = wp_parse_args( $args, $defaults ); | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment