mennolui / wp-foyer

Foyer - a free Digital Signage plugin for WordPress. Perfect for theaters, music venues, cinemas and festivals.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatic slide when new post with specific tag or category is added #17 formatting

fbosman opened this issue · comments

Thank you for this great improvement!

I do have some remarks about the formatting.
If the text of the post is larger then the available area on the slide, then we lose text on top and bottom, can you define overflow:hidden for this case?
Can you set the height of the image to 100% so that the images are not cut off in case of large images?

regards,

Frans

Hi Frans,

Text: I agree it does not look the best when text does not fit the screen. Did you find a solution that works well both for texts that do and don't fit? If so could you share a CSS snippet?

Image: Can you show me what is the problem? The featured image is cropped to a square, but that is intentional. If you want to send me input privately you can use this form: https://foyer.tv/send-info/

Thanks!

Hi Menno,
I'm not a css hero, but I made these adjustments and it looks rather ok now:
-slide-field-date {
display: none;
}

.foyer-slide .foyer-slide-field.foyer.foyer-slide-field-title {
font-size: 8rem;
}
.foyer-slide.foyer-slide-recent-posts .inner .foyer-slide-fields .foyer-slide-field-content {
padding: 1.5rem 1rem;
font-size: 3rem;
}
.foyer-slide.foyer-slide-recent-posts .inner figure img {
width: auto;
height: 100%;
object-fit: unset;
}
.foyer-slide.foyer-slide-recent-posts .inner figure img {
width: auto;
height: 100%;
-o-object-fit: unset;
object-fit: unset;
}
.foyer-slide.foyer-slide-recent-posts .inner .foyer-slide-fields {
display: block
}

Hey Frans,

This positions the title and content at the top of the slide. I like the idea of the title and content being positioned in the middle as this will make any slide look good (except the ones with too much text ;-) ). So for the time being I will keep this as the default.

Images being cut off: Still not sure what the problem is. Can you show me?

Thanks for the link, always cool to see how people use Foyer!

I see what you mean with images not being prefect size, they are smaller than 1080x1080 pixels. Foyer does not handle images that are too small very well. One trick, if you really can not find images large enough, is editing them in Photoshop for example and increase the size to at least 1080x1080 (or 1920x1080 for backgrounds). Then you don't need the CSS that stretches your images out of proportion.

Best,
Menno