Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #990940

    On our home page we have a case studies section that is being built through a shortcode. Anyhow I need to remove the image overlay on left side grid so I can apply my own script but it is not working as expected.
    css added is
    .home-case-studies .one_half .image-overlay { display: none !important; opacity: 0 !important }
    but as you can see on hover it is messing up my grid.
    Screen shot is here:
    [code]
    https://5btech.net/development/case-studies.png
    [/code]

    Also what is best way to enqueue a js file into enfold-child theme?

    Thanks for your help.

    #991097

    Hey calnettech2,

    Best regards,
    Victoria

    #991136

    I am not asking why the function doesn’t work. I haven’t even added the function yet and the function doesn’t even get called onto you click on the image. I want to remove the image overlay which is disrupting the grid on hover ….

    Hovering over the image should not change its position.

    [code]
    <span class=”image-overlay overlay-type-extern” style=”left: -5px; top: 0px; overflow: hidden; display: block; height: 130px; width: 184px;”><span class=”image-overlay-inside”></span></span>
    [/code]

    #991262

    Hi calnettech2,

    Best regards,
    Victoria

    #991277

    Then please tell me what is happening on hover. There are functions attached to the hover that I didn’t put there. How do I remove those??

    #991425

    Hi,

    I would like to check this but the “Case Studies” page is empty. Did you remove the content of the page? (see private field)

    Best regards,
    Ismael

    #991519

    Please READ the notes. Getting a little frustrated as I cannot finish up this work without some help.

    On our home page we have a case studies section that is being built through a shortcode.

    Screen shot is here:
    [code]
    https://5btech.net/development/case-studies.png
    [/code]

    It appears that a script is being added (not by me) that is messing up the hover on the images so that the grid is not maintained. I am trying to add an onclick event but first need to remove whatever is happening when you hover over one of the images. It appears to be attached to the surrounding tag.

    #991537

    Please read the previous reply by me and here is an additional screenshot.
    [code]
    https://5btech.net/development/hover-text.png
    [/code]
    I want to remove the mouseover and mouseout events on the images in the grid on case studies section on the home page. (But nowhere else). These are being added by your theme and in this particular case they are messing up my grid layout.

    #991649

    Hi calnettech2,

    Those functions are inlined in the JavaScript in your case studies shortcode.

    Best regards,
    Victoria

    #991657

    NO they’re not. Just so I can show you I removed the onclick function from my shortcode but the mouseout and mouseover functions are still there! These are being added by the theme. The functions being added are
    [code]
    function() {
    if (s.length) {
    if (a === !1) s.stop().animate({
    opacity: 0
    }, 400)
    }
    }

    function(a) {
    return “undefined” == typeof n || a && n.event.triggered === a.type ? void 0 : n.event.dispatch.apply(k.elem, arguments)
    }

    function(e) {
    var i = o.find(‘img:first’),
    r = i.get(0),
    l = i.outerHeight(),
    f = i.outerWidth(),
    d = i.position(),
    p = o.css(‘display’),
    s = o.find(‘.image-overlay’);
    if (l > 100) {
    if (!s.length) {
    s = t(‘<span class=\’image-overlay ‘ + n + ‘\’><span class=\’image-overlay-inside\’></span></span>’).appendTo(o)
    };
    if (o.height() == 0) {
    o.addClass(r.className);
    r.className = ”
    };
    if (!p || p == ‘inline’) {
    o.css({
    display: ‘block’
    })
    };
    s.css({
    left: (d.left – c) + parseInt(i.css(‘margin-left’), 10),
    top: d.top + parseInt(i.css(‘margin-top’), 10)
    }).css({
    overflow: ‘hidden’,
    display: ‘block’,
    ‘height’: l,
    ‘width’: (f + (2 * c))
    });
    if (a === !1) s.stop().animate({
    opacity: h
    }, 400)
    } else {
    s.css({
    display: ‘none’
    })
    }
    }

    function(a) {
    return “undefined” == typeof n || a && n.event.triggered === a.type ? void 0 : n.event.dispatch.apply(k.elem, arguments)
    }
    [/code]
    I AM NOT ADDING THESE FUNCTIONS – the theme is.
    Look at the source of the events. That is not me.
    Seriously I’m pulling my hair out here because you guys won’t answer my question.

    #991669

    So I figured out the answer myself since you all refused to really look at this question. For future reference if you add class=”noLightbox” to a link it removes the lightbox functions THAT ARE BEING ADDED BY THE THEME.

    #991944

    Hi calnettech2,

    I did not see the lightbox added there.

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #991945

    Hi calnettech2,

    I did not see the lightbox added there.

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.