Tagged: mobile, rollover, transparency
HI
On this page: http://wp.marlowfilm.dk/
there is a rollover transparency on the fullcreen slideshow images that I would like to remove but I can’t find the code.
Is it also possible to have the slideshow images open in lightbox only on the mobile? The fullscreen slideshows look
kind of small on the phone.
Thanks for your help!
Nancy
Hi Munford!
You have following code in Quick CSS field, please remove it
img:hover {
opacity: 0.5 !important;
}
Please firstly link your slider images and then add following code to Functions.php file in Appearance > Editor
function add_custom_slider_link(){
?>
<script>
jQuery(window).load(function(){
if (jQuery(window).width() >= 768){
jQuery("ul.avia-slideshow-inner li a").removeAttr("href");
}
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_slider_link');
Regards,
Yigit
thanks! the img: hover setting was for the portfolio grid – how can I make it only display there?
Hey Nancy!
Please use following code instead
.grid-image img:hover {
opacity: 0.5;
}
Regards,
Yigit
so simple. thanks again.