-
AuthorPosts
-
July 28, 2018 at 5:30 pm #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.
July 29, 2018 at 4:51 pm #991097Hey calnettech2,
Best regards,
VictoriaJuly 29, 2018 at 5:58 pm #991136I 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]July 29, 2018 at 7:47 pm #991262Hi calnettech2,
Best regards,
VictoriaJuly 29, 2018 at 8:09 pm #991277Then 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??
July 30, 2018 at 7:35 am #991425Hi,
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,
IsmaelJuly 30, 2018 at 2:21 pm #991519Please 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.
July 30, 2018 at 3:18 pm #991537Please 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.July 30, 2018 at 6:13 pm #991649Hi calnettech2,
Those functions are inlined in the JavaScript in your case studies shortcode.
Best regards,
VictoriaJuly 30, 2018 at 6:27 pm #991657NO 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.July 30, 2018 at 6:55 pm #991669So 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.
July 31, 2018 at 2:36 pm #991944Hi 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,
VictoriaJuly 31, 2018 at 2:36 pm #991945Hi 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 -
AuthorPosts
- You must be logged in to reply to this topic.