-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with Media &Text Block #21399
Comments
Please provide screenshots and more information so people don't need to refer to your website each time, and so the information remains available if you fix your website. |
Yes |
While this is probably not the right solution, at least it provides a simple non-invasive work-around. The problem is that the cropped image is a background, while the link adds the same image un-cropped on top. Adding this to your CSS will resolve the issue:
It will take the linked image, render it invisible and stretch it to cover the entire available area. That way the cropped image below shows, but the top opaque image remains clickable across the same area. |
I do appreciate you are trying to help |
Change the CSS to this which will only activate if there's a cropped background image:
|
Well done! |
I was able to replicate this. As @marcnajera stated above, the following conditions need to be met:
In particular, it seems the presence of a link with the image seems to be causing the conflict as if you remove the link the image shows without a problem. Of note, this effect only shows when viewing the post on the front end. The editor doesn't show the problem: I tested this with the following setup:
|
I was working with @AndrewMLeonard today. We noted that the problem also occurs on Twenty Sixteen and Twenty Twenty. |
As a test I added the CSS to
Brief explanation
|
Describe the bug
https://ebps.org.uk/adiantum-and-its-colours/
I created a Text & Media block and then duplicated it. I added a link to the image in the first block
The only difference between them is that one has a link and the other does not
You can see what happenned if you follow the link (above)
I have 2014 theme (with child)
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: