Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #857360

    Here’s a breakdown of the issue:
    I add an image to the bottom of a sidebar that displays on the Blog page (see link in private content). The image is clickable.

    The first time I hover over the image, the overlay is not visible, due to the fact that the ‘top’ attribute has a negative value of -129px as follows:

    The second time I hover over the image, the position of the top attribute is correctly set to 0px.
    I used the Image widget to drop the image into the sidebar. I’ve also tried using the Custom HTML and the Text widgets to insert images into the sidebar and I get the same issue with the overlay having a negative top value the first time I hover over the image.

    Any idea why this is happening? Can you recommend a workaround?

    Many thanks

    #857831

    Hey dianado,

    Is it the QCA image at the bottom of the sidebar? If so then I can’t reproduce it, in what browser are you seeing that happening?

    Best regards,
    Rikard

    #857863

    Hi Rikard
    Yes, that’s the image. I can recreate the issue using Chrome and Safari. Is it possible that it looks like it is working when in fact it isn’t? It only happens the first time you hover over the image. The second time onwards, the ‘top’ attribute is set correctly and the overlay appears from then on, in the correct position.

    Here is what the Chrome debugger shows the first time I hover over the image:
    <span class=”image-overlay overlay-type-extern” style=”left: -5px; top: -129px; overflow: hidden; display: block; height: 144px; width: 252px;”><span class=”image-overlay-inside”></span></span>

    and here’s what it shows the second time onwards:

    <span class=”image-overlay overlay-type-extern” style=”left: -5px; top: 0px; overflow: hidden; display: block; height: 144px; width: 252px;”><span class=”image-overlay-inside”></span></span>

    Regards
    Diana

    #857903

    Hi Diana,

    DO you want the overlay to be there or do you want to remove it?

    Best regards,
    Victoria

    #858270

    Hi Victoria
    I’d like the overlay to be there as the image may be used to link to an advertiser’s page.

    Thanks
    Diana

    #858320

    In addition to my last reply, and since I mentioned ‘advertiser’, please don’t suggest that I use the Enfold Ad Widget as a workaround ;o). I’d really like the overlay issue to be fixed.

    Many thanks
    Diana

    #859046

    Hi,

    Please add this code in the Quick CSS field. It’s not working correctly because there’s a custom script that applies the “display” property on hover.

    .widget_media_image a {
        display: block !important;
    }

    Best regards,
    Ismael

    #859904

    Hi Ismael
    Thank you so much. That worked and is exactly what I was after.

    Again, many thanks
    Diana

    #860019

    Hi,

    No problem. Let us know if you need anything else. :)

    Best regards,
    Ismael

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Overlay on linked image in widget area is positioned outside of image’ is closed to new replies.