Hi there, good day dear community,
Well while i was doing a little google-search i have found the following;
I have been searching on the whole net in order to find something useful for the solution that i can apply various (different) on the WordPress-twentyseventeen-theme:
Well what is wanted and what is needed: I have found a way to resize the so called header image of the theme because its way too big. On post pages when you put a
featured image its a perfect size on all devices, but when I try to put featured image on a regular page its way to big as well.
see the page: https://www.job-starter.com/
see the images that are way too big: The questions are the following ones:
– how can I adjust the size so I can make like a header for the different pages, lets say i take the following size: 800 x 175
– can i do this by pasting this little text-chunk at the end of the css – in the so called css-file:
@media screen and (min-width: 48em) {
.panel-image {
height: 175px;
}}
ps – i also found an additional HowTo that goes into this direction: cf:
How To Reduce The Header Height Size Of The Twenty Seventeen Theme Front Page https://medium.com/@bharatkaravadra/how-to-reduce-the-header-height-size-of-the-twenty-seventeen-theme-front-page-562f1230044c
it notes several good an valid points;
The default Twenty Seventeen front page header image uses the full height of the screen except for the menu that appears underneath. This size of this header can be changed.
A reduced height header image.
The height of the header has been reduced by 50% in this example. Note that the header height includes the main navigation menu and so the image appears
a little less than 50% in height.
Where and how to change the height of the header.
In WordPress Admin > Appearance > Edit CSS.
Enter the CSS code below.
The first section is for a computer / laptop screen.
The second section is for a tablet or phone screen.
The third is the same as the first but for logged in users where the WordPress admin bar.
The CSS code that might help here
/*Computer screen */
@media screen and (min-width: 48em) {
.twentyseventeen-front-page.has-header-image .custom-header-image {
/*height: 1200px;*/
/*height: 100vh;*/
height: 50vh;
/*max-height: 100%;*/
/*overflow: hidden;*/
}
}
/* Mobile screen*/
.has-header-image.twentyseventeen-front-page .custom-header {
/*display: table;*/
/*height: 300px;*/
/*height: 75vh;*/
height: 50vh;
/*width: 100%;*/
}
/* Computer screen with logged in user and admin bar showing on front end*/
@media screen and (min-width: 48em) {
.admin-bar.twentyseventeen-front-page.has-header-image .custom-header-image {
/*height: calc(100vh - 32px);*/
height: calc(50vh - 32px);
}
}
what do you tink about this!?
Thanks in advance.