diff --git a/header.php b/header.php index bf48b70..b98a441 100644 --- a/header.php +++ b/header.php @@ -10,7 +10,7 @@
- +
diff --git a/lib/theme.php b/lib/theme.php index f314526..7ef381c 100644 --- a/lib/theme.php +++ b/lib/theme.php @@ -60,4 +60,15 @@ function munisingcvb_excerpt_read_more( $more ) { return ' ' . __( 'Read More »', 'munisingcvb' ) . ''; } endif; + +/* Header for posts*/ +function glm_get_background() { + if (has_post_thumbnail()) { + $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full"); + $imageUrl = ''; + } else { + $imageUrl = ''; + } + return $imageUrl; +} ?> \ No newline at end of file diff --git a/parts/slide-show.php b/parts/slide-show.php index e566daa..3169e29 100644 --- a/parts/slide-show.php +++ b/parts/slide-show.php @@ -1,6 +1,6 @@ '; - echo do_shortcode("[metaslider id=27]"); - echo '
'; + echo do_shortcode("[metaslider id=55]"); +} else { + echo glm_get_background(); } ?> diff --git a/scss/_defaults.scss b/scss/_defaults.scss index 42d6a38..a7bd636 100644 --- a/scss/_defaults.scss +++ b/scss/_defaults.scss @@ -5,7 +5,6 @@ h1, h2, h3, h4, h5, h6 { clear: both; } - /* PLUGINS */ /* Nextgen */ .gallery li a img { // without this images will overlap each other at certain widths @@ -18,7 +17,7 @@ h1, h2, h3, h4, h5, h6 { .ngg-album-compact h4 .ngg-album-desc { height: auto !important; font-family: $font-family-serif; - font-weight: 400; + font-weight: 400; } .ngg-album-compact .album-meta-wrapper h4 a { font-style: normal; diff --git a/scss/_structure.scss b/scss/_structure.scss index 21668db..5204e37 100644 --- a/scss/_structure.scss +++ b/scss/_structure.scss @@ -76,6 +76,17 @@ blockquote > * { // Wordpress just loves to inject p tags } } +.featured-image { + margin: 0 auto; + max-width: 100%; + min-height: 560px; + @media #{$small-only} { + min-height: 130px; + } + width: 100%; + z-index: -1; +} + .block-shadow { box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.35); }