-
AuthorPosts
-
November 18, 2017 at 7:54 pm #878620
Hello
I would miketo find how to block the footer at the bottom of the screen even if the text is too small, but it would not appear if the text is longer tan the screen
Many thanks
November 18, 2017 at 9:03 pm #878640Hey ctancrede,
Please include the url to the page in question, and a screenshot of what element you want to hide.
Please try using https://postimages.org/ and pasting the image URL in your post.Best regards,
MikeNovember 19, 2017 at 1:11 pm #878770Hello
ThankHere is the link : https://postimg.org/image/dnzejhym9/
I just want the footer stay at the bottom of the screen when the text is not enought long
November 19, 2017 at 3:17 pm #878790Hi,
Try this code in the General Styling > Quick CSS field:#main .template-page.content {min-height: 80vh!important; }
This will make the page 80% of visual height, you can adjust the number to suit. If you only want it to work on one page add the page id after #main
Best regards,
MikeNovember 20, 2017 at 10:37 am #879021Hello,
I am sorry but this solution doesn’t work :
– that my home frame before using the css code above :https://postimg.org/image/f0udjp6ud/
– this is what I have after ! : https://postimg.org/image/5iumjwl8l/I am looking to find out to let the footer at the bottom of the screen if the text is too small. https://postimg.org/image/f0udjp6ud/
I would like the red footer to be on the bottom ???Many thanks
November 21, 2017 at 6:42 am #879521Hi,
In order to use the code so it will not interfere with other pages you will need to add the page_id of the page that is too short to the code. If you would like assistance figuring out your page_id for that page please include a link to it.
For that page that is too short was 80vh good, or did you try different numbers?
Overall there is not a single fix for pages that don’t have enough content, other than adding more content or some code like this.
Do you plan on having many pages that are short like this?Best regards,
MikeNovember 22, 2017 at 11:03 am #880157Hello
Yes I must have 8 pages with small text.
For example
On a small screen, it ok
But on a large screen, the red part is pluging half of the screen which is not very smart. I would prefer the footer stay above, and having a blank space between the end of the text ans the footerNovember 22, 2017 at 12:06 pm #880196Hi,
If I understand correctly on these pages you would like the footer to show just a little so you can read the footer text, and mobile screens are fine. So I wrote this to target only those three pages for tablet and above.@media only screen and (min-width: 768px) { #top.page-id-1404 #main .template-page.content,#top.page-id-1416 #main .template-page.content,#top.page-id-999 #main .template-page.content {min-height: 70vh!important; } }
You will note the page-id’s in the repeating rule separated with a comma, to add more just add a comma and this rule:
#top.page-id-XXX #main .template-page.content
change the XXX to your page ID number, or list the pages here.
I found 70vh looked best, but you can adjust to suit. Please see screenshot in Private Content areaBest regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.