From: Anthony Talarico Date: Fri, 13 Apr 2018 20:10:06 +0000 (-0400) Subject: fixing broken styles in on the front page X-Git-Tag: v1.0.0^2~14 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=5693f6e2c2078606537bc03fa59c0e832d7d382f;p=WP-Themes%2Fnpoint.git fixing broken styles in on the front page --- diff --git a/functions.php b/functions.php index fe984dd..c709487 100644 --- a/functions.php +++ b/functions.php @@ -273,4 +273,27 @@ function glm_get_header() { echo '
'; echo '
'; echo ''; +} +/** + * Return the client info option for the given key + * + * @param type $name Name of the client info option to return + * + * @return string Option + */ +if (!function_exists('glm_get_clientinfo_option')) { + function glm_get_clientinfo_option($name) + { + $settings = get_option('glmclientinfo_settings'); + $states = get_option('glmclientinfo_states'); + if ($name == 'stateFull' && $settings['state']) { + return $states[$settings['state']]; + } + if ($name == 'state2Full' && $settings['state2']) { + return $states[$settings['state2']]; + } + return ($settings && $settings[$name]) + ? $settings[$name] + : null; + } } \ No newline at end of file diff --git a/style.css b/style.css index 98275ee..1420c5d 100644 --- a/style.css +++ b/style.css @@ -590,9 +590,19 @@ Content width: 1000px; margin: 0 auto; } -.parallax-section .mid-content{ - width: 1200px; + +@media screen and (min-width: 1200px){ + .home .mid-content{ + width: 1200px; + margin: 0 auto; + } } + +/* @media (min-width: 770px){ + .parallax-section .mid-content{ + width: 1200px; + } +} */ .parallax-section { padding: 60px 0 80px; position: relative;