$value ) { if( $option == 'size' ) { $option = 'font-size'; } if( $option == 'face' ) { $option = 'font-family'; } if( $option == 'style' ) { $option = 'font-weight'; } if( $value != '' ) { $body_styles[$option] = $value; } } } // Set font-family if google font is on $google_font = isset($customize_typography_options['google_font_field']) ? $customize_typography_options['google_font_field'] : ''; if( isset( $body_styles['font-family'] ) && $body_styles['font-family'] == "Google Fonts" && $google_font != "" ) { $body_styles['font-family'] = '"'.$google_font.'"'; // Check if SSL is present, if so then use https othereise use http $protocol = is_ssl() ? 'https' : 'http'; wp_register_style( 'google-font', $protocol . '://fonts.googleapis.com/css?family=' . $google_font ); wp_enqueue_style( 'google-font' ); } return $body_styles; } // creates link color array for just a tag function cyberchimps_link_styles() { $link_styles = array(); if( get_theme_mod( 'link_colorpicker' ) ) { $link_styles['a'] = get_theme_mod( 'link_colorpicker' ); } if( get_theme_mod( 'link_hover_colorpicker' ) ) { $link_styles['a:hover'] = get_theme_mod( 'link_hover_colorpicker' ); } return $link_styles; } // creates width for main container of website function cyberchimps_layout_styles() { $container_styles = array(); if( get_theme_mod( 'max_width' ) ) { $width = intval( get_theme_mod( 'max_width' ) ); $key = ( get_theme_mod( 'responsive_design', 'checked' ) ) ? 'max-width' : 'width'; if( $width < 400 || empty( $width ) ) { $container_styles[$key] = 1020; } else { $container_styles[$key] = $width; } } return $container_styles; } // add apple touch icon function cyberchimps_apple() { if( get_theme_mod( 'custom_apple' ) ) : $apple = get_theme_mod( 'apple_touch_uploader' ); if( $apple != '' ): ?>