Archived topic
page length too long
21 replies · Started by Mark on April 18, 2018
Awesome :)
@Mark glad it worked!
@Tom Thanks :) I've actually been meaning to write to you for a while now about it, wondering if it was something worth including in GP (as an option) since it's something a lot of people are looking for and there's finally a not-totally-hacky solution.
Since Flexbox would be attached to the entire body, it's something that would need to be tested extensively. It would likely have consequences with a lot of sites unfortunately, as GP is currently being used on over 100,000 different sites.
Thanks Leo - I used the following CSS from Tom. Is this a global command across my entire site, or just the single page in question?
@media (min-width: 769px) {
.site-main {
min-height: 700px;
}
}
Hi Nick, thanks for the post. However, I am using the code by weather as follows:
html, body {
height: 100%;
}
body {
display: flex;
flex-direction: column;
}
#page {
flex: 1 0 auto;
width:100%;
}
Seems to work well.
Mark
Sorry, I meant by wekhter.
Mark
I would recommend this code here: https://generatepress.com/forums/topic/page-length-too-long/#post-555642