-
AuthorPosts
-
July 20, 2020 at 6:53 pm #1231818
I followed this: Remove Lightbox in single posts
That removed Lightbox in single posts, the problem is when I add for example a gallery. It won’t work.
The new question is, how to remove Lightbox in single posts correctly, just affecting single images.
In the other thread you shared this:
.big-preview.single-big { pointer-events: none; }
What is the way to not affect anything but single images in single posts?
Thanks.
July 20, 2020 at 8:35 pm #1231851Hey peterolle,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
.single.single-post .big-preview.single-big { pointer-events: none; }
If you need further assistance please let us know.
Best regards,
VictoriaJuly 20, 2020 at 9:15 pm #1231870Added it to Enfold > General Styling > Quick Css and nothing.
Added it to Enfold Child > style.css and nothing.Can’h hover or click anything in the gallery.
So it must be a different CSS the one that’s needed.
Thanks.
July 21, 2020 at 12:08 am #1231896Hi,
Please provide a link to the gallery page.
Best regards,
Jordan ShannonJuly 21, 2020 at 12:23 am #1231903Single normal post featured image. No light box.
Single galley post. Click to see gallery.It is a natural post, nothing custom, you can test in any enfold demo.
Thanks.
July 21, 2020 at 1:06 am #1231916Hi,
Try adding the following to quick css as well:
.gallery a{ pointer-events: initial!important; }
Best regards,
Jordan ShannonJuly 21, 2020 at 7:27 am #1231958Thank you Jordan, but that is not working either.
I tested with this and it works:
.avia-gallery-big, .avia-gallery-thumb { pointer-events: initial!important; }
Is that correct or there is something else needed for galleries?
The idea is to disable it “JUST” for single normal posts featured images, but having it working everywhere else.
Thanks.
July 21, 2020 at 7:36 am #1231962Hi,
What you have there in combination with my original code suggestion should get that result.
Best regards,
Jordan ShannonJuly 21, 2020 at 7:37 am #1231964Yours is not working. That is why I am sharing mine to see if that is ok or something else is needed.
Thanks.
July 21, 2020 at 7:58 am #1231974Hi,
I mean the first code I added for the single post. They both are needed.
Best regards,
Jordan ShannonJuly 21, 2020 at 8:01 am #1231975.big-preview.single-big { pointer-events: none; } .gallery a{ pointer-events: initial!important; }
That removes it everywhere, including gallery.
Adding mine, fixes gallery.
The question is if there is something else needed so everything works, BUT single normal featured images.
Thanks.
July 25, 2020 at 1:40 am #1233105Hi,
Apologies for the delay, I will see if any of the other mods have additional insight.
Best regards,
Jordan ShannonJuly 25, 2020 at 1:20 pm #1233195Hi,
Sorry for the late reply, for each post type the div with the classesbig-preview single-big
is used at the top of the post to hold the top element, so to only block the image click of a standard post, and not the gallery, video, audio, etc. posts
please add the post type to the css like this:.single-format-standard .big-preview.single-big { pointer-events: none !important; }
this will not effect the gallery element on other pages because it doesn’t use the classes
big-preview single-big
please remove your other css and add this and then clear your browser cache and check.Best regards,
MikeJuly 27, 2020 at 2:39 am #1233412This is not working for me. But maybe I am asking for a diff feature. I do not want the featured image to be cropped at the top of a single post. Makes no sense why anyone would go to the trouble to make a new image, set it as featured, then expect the user to click on it on to see the whole image.
I added the CSS immediately above and it did not change anything for me.
Thanks in advance for your help.
July 27, 2020 at 6:45 am #1233438@barefeetstudios : did you solve your problem? I don’t see the picture being cropped!
July 27, 2020 at 7:12 pm #1233574Hi Guenni – I decided to work around things. This crop + lightbox functionality makes no sense to me so I am posting the image manually inline and leaving the featured image as is. It STILL would not pull en image when I share to Twitter so I’ve installed Yoast SEO plugin hoping that would fix it, and it doesn’t. Why would the theme overwrite this basic functionality in two areas? No idea. It’s a hassle and is not keeping up with the times. Thank you for listening to my rant!
July 27, 2020 at 7:20 pm #1233576@barefeetstudios please open another thread, this one has nothing to do with your problem.
Thanks.
July 27, 2020 at 7:24 pm #1233577This reply has been marked as private.July 27, 2020 at 7:26 pm #1233578To all: I replied privately to @peterolle in more detail.
But to be clear, I was complaining about the error in no image showing up when sharing to social from the blog post using Enfold. I was not asking for help on it. There are other threads here that show how to hack the code to make it work. Nope; not gonna do that. I’ll wait for a theme fix.
Happy Monday!
July 27, 2020 at 7:29 pm #1233579Private is only for moderators, not users, so I can’t see your reply.
If this topic is talking about: Remove Lightbox in single posts correctly
Why do you come to ask another thing that will only mix and confuse the whole thread? Please open a new thread with your problem and you will get help there.
Thanks.
July 28, 2020 at 12:39 pm #1233738Hi,
@peterolle, did you find this reply to solve your issue?
I carefully tested this on a new install, if this didn’t help & you cleared your caches, please link to your test page so I can check the structure.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.