I hope someone can help me. When I decide to insert a post without image (in a ‘Block’ with photo on the left) I would like the text to align naturally to the left. Can you tell me which code to modify?
Hi,
You could use a flex block, these have settings to hide the thumbnail
– http://prntscr.com/md6117
The rest of the block elements will adapt if the image is hidden. Here are designs made by us based on flex blocks
– https://affiliate.tagdiv.com/#/load/Blocks
maybe you can find one that already looks the way you want, each can be imported through cloud library plugin
– https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
As a note, this topic would have been among the first in the reply queue, as it is older. Replying in your own topic multiple times will refresh the topic date moving it to the back of the line. We answer from oldest to newest.
Please let me know if you have more questions.
Thanks
Hi Simon,
if I hide thumbnail in flex box, all posts will be without images. I don’t want this. Not all my posts have images. When I decide to insert a single post without image I would like the text to align naturally to the left.
Example: https://www.washingtontimes.com/sports/
If you remove in the loop an image for single post, text align to the left.
I believe that we need to modify modules file (div)
I understand what you are referring to. But the modules will not behave in that manner. The space for the thumb is reserved, so the post meta will not take this into account and align differently.
Maybe consider using a mix of blocks, ones that do show thumbnails and others that do not. But this way you would have to filter the posts so that the ones without a featured image display in blocks that do not show the thumbnail.
With CSS it won’t be possible to target the modules that display posts without a thumbnail and align the meta, that would have been a solution.
It’s a very serious limitation of your theme. Unfortunately I can’t use your theme. I am very sorry. If I had known, I wouldn’t have bought it.
Hi Simion,
I consider your theme the best ever seen. I would like to buy it again. In this regard, I would like to ask if the problem of the thumbnail can be solved modifying the code or is impossible?
Best regards
Vincenzo
Hi,
Maybe it would be possible with some CSS, it will depend on the block used however. Here I used block 11 which looks like this – https://demo.tagdiv.com/newspaper/block-11/
If there is no featured image set and the thumbnail placeholder is disabled, it will look like this – http://prntscr.com/mf4bzh
With some CSS it could be made to look like this – http://prntscr.com/mf4ce3
This could be possible for other specific block as well, but not for all at once. So it isn’t a definite solution, it may work only for some blocks. If these posts without featured images and placeholders disabled would appear in grids or various modules there may be problems. Sorry for the inconvenience.
Thanks
Very well Simion!
How can I remove the placehorder in the ‘posts loop block’?
That could be done with some CSS, for example – http://prntscr.com/mgafmt
.tdb_loop .td_module_no_thumb .td-image-container {
display: none;
}
.tdb_loop .td_module_no_thumb .td-module-meta-info {
margin-left:0;
padding-left:0;
}
I used the post loop 1 element in this example, this code could be modified if needed.