Archived topic
How to 'max-width' the text but not the slider
3 replies · Started by Dan on March 25, 2020
Hi,
I would appreciate it if you helped me with this issue.
It is my intention that every post has a couple of images attached that are displayed with a slider.
I've added a slider to a post to display the images (so the slider is contained within the post). Now, I'd like to change the max-width of the slider and text separately.
When I add the following line in additional CSS in customizer, it changes the maximum width of both - the slider and text. I don't know how to target text and the slider specifically.
.entry-content {
max-width: 700px;
}
Thanks!
Hi there,
It's not possible to set a max-width on the specific elements inside entry-content unfortunately.
The solution would be to use our upcoming plugin Generate Blocks:
https://generateblocks.com/
Which is currently in Alpha 3:
https://generateblocks.com/install/
The container blocks would allow you to set different width for each block.
Great! Thanks Leo for the hint. Is it possible to build the homepage with Generate Blocks in a mode: your homepage displays your latest posts? Or I have to switch to a static page? (I'd like to avoid that)
Hi there,
the page has to be a static page. You cannot directly edit archive/blog pages.