Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #652616

    Hey Kriesi,
    I want to cancel the link on the image on a single blog page,
    I had this problem with a different blog,

    I’ve tried using this –
    #top .single .big-preview.single-big {
    pointer-events: none;
    }
    Does’nt work… (did work on the other Enfold blog)

    and also, when there is no featured image I would like there to be some padding-top
    maybe something like min-hight could solve this? (see 2nd link in the content)

    Thanks,
    Uri

    #652885

    Hey Uri_Berry,

    Please try this instead:

    .single .big-preview a {
    pointer-events:none !important;
    }

    Regards,
    Rikard

    #729089

    Hey kriesi,

    I would like to keep the tooltip that shows the caption for the image on a single blog page,
    while canceling the link for the lightbox image,
    Is this possible?

    also, is there an option for media credits to show always under the photo of the single blog page?
    something like one line of text?

    Thanks,
    Uri

    #729328

    Hi,

    Thank you for the info.

    Please add this in the functions.php file.

    add_action('wp_footer', 'ava_custom_script');
    function ava_custom_script(){
    ?>
    <script type="text/javascript">
    (function($) {
    	function a() {
    		$('.single .big-preview.multi-big a img').each( function() {
    			var title = $(this).parent('a').attr('title');
    
    			$(this).attr('title', title);
    			$(this).unwrap('a');
    		});
        }
    
    	a();
    })(jQuery);
    </script>
    <?php
    }

    This will remove the anchor link add apply its title to the image.

    Best regards,
    Ismael

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