Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #855547

    if on a masonry (portfolio entries) the overlay is only on mouse-over – ipad allways shows them

    i found this : https://kriesi.at/support/topic/full-width-masonry-display-title-mouse-over-iphone-ipad/

    but it was with no effort .

    first of all the css all mods provides must fail because they have mostly included .avia_desktop
    but allthough i let it away nor put a .avia_mobile in front – no effect !

    PS i do not want to have the code in quick css – i entered it via functions.php of child-theme:
    i see that there was an effect on font-size – but overlay no influence

    add_action('wp_head', 'ava_add_custom_css');
    function ava_add_custom_css() {
    if( !wp_is_mobile() )
    return;
    ?>
    <style type="text/css">
    .avia_mobile .av-caption-on-hover.av-masonry-item-with-image.av-masonry-entry:hover.av-inner-masonry-content { opacity: 0!important; }
    #top .av-caption-style-overlay .av-masonry-entry .av-masonry-entry-title {font-size: 1em !important;}
    </style>
    <?php
    }

    btw : if i put on quick css

    
    .av-caption-on-hover.av-masonry-item-with-image.av-masonry-entry:hover.av-inner-masonry-content { opacity: 0!important; }

    i can see that this is the right code to prevent overlay –

    #856296

    Hey Guenter,

    Thank you for using Enfold.

    Could you please provide a screenshot of the issue?

    Best regards,
    Ismael

    #856821

    it does not need a screenshot – description of the problem is, that all of those masonry elements show the state as if it is hovered.
    means all of them with semitransparent dark overlay and the description shown in white.
    PS : all ipad / Iphone websimulators do not show the effect – only the real device is showing it.

    i dont want the the behavior works on ipad – i’m totaly satisfied with the nonhoverd state on ipad/iphone.

    by the way i tried to do this:

    function add_touch_fix(){
    ?>
    <script>document.addEventListener("touchstart", function(){}, true);</script>
    <?php
    }
    add_action('wp_footer', 'add_touch_fix');

    but has no effect too

    #856838

    oh wow – i can not realy copy/paste things – the code above is nonsense!
    first of all the !wp_is_mobile() with exclamation mark (head-shake) :lol

    i did it this way for now. I’m looking to adjust this
    https://kriesi.at/support/topic/some-extra-classes-for-hover-states-on-enfold/#post-764012 for my site

    function wp_ipad_mod() {
    if(wp_is_mobile()){
    	echo '<style type="text/css">
    	#top .av-caption-style-overlay .av-masonry-item-with-image .av-inner-masonry-content { opacity: 0!important; }
    	#top .av-caption-style-overlay .av-masonry-entry .av-masonry-entry-title {font-size: 1em !important;}
    	</style>';
    }
    }
    add_action('wp_head', 'wp_ipad_mod');
    #856848

    so something has changed in new enfold. In former versions a class hover was added – as described in the old thread. Now nothing happend in this way.
    Anyway – can be closed

    #857249

    Hi,

    Alright. For clarification, the previous modification is for the Image element, not the Masonry. Maybe, that’s why the “hover” class exist.

    Best regards,
    Ismael

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