Hi, I have placed a picture on the screen. If the current post has no picture, I want that picture to collapse, so there is no empty space on the screen. When the current post has a picture, it should be simply shown on the screen. Does somebody know how I can do this?
Hi there, @Jakob1… if you put a condition on the image element to make it not visible when there is no picture (or go the other way and make the element not visible on page load and put a condition on it to make it visible when there is a picture), and then you check the Collapse when hidden box on the Layout tab of the image element, you should get the desired result.
Note that if you don’t see the Collapse when hidden checkbox on the Layout tab, it’s because the image element’s parent container’s layout is fixed, and you would need to change the parent container’s layout to something other than fixed to get the checkbox to show up.
Hope this helps.
This topic was automatically closed after 70 days. New replies are no longer allowed.