Created
May 19, 2017 16:05
-
-
Save jimmyk69/a3f6a66c7ff7a8f79d93aa209a8c16d7 to your computer and use it in GitHub Desktop.
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
.has-header-image .custom-header-media img, .has-header-video .custom-header-media video, .has-header-video .custom-header-media iframe, .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-media img { | |
height: 66% !important; | |
object-fit: fill !important; | |
width: 100%; | |
max-height: 100% !important; | |
display: block !important; | |
position: relative !important; | |
} | |
#wp-custom-header { | |
height: 50% !important; | |
} | |
.admin-bar.twentyseventeen-front-page.has-header-image .custom-header-media, .admin-bar.twentyseventeen-front-page.has-header-video .custom-header-media, .admin-bar.home.blog.has-header-image .custom-header-media, .admin-bar.home.blog.has-header-video .custom-header-media { | |
height: calc(71vh – 32px) !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
It seems that if I insert it to the Custom CSS part your code is not working well.
I suggest the following method:
Works well on mobile and PC.