Support » Plugin: WP Tiles » Pop up on hover or click

Viewing 1 replies (of 1 total)
  • Plugin Author Mike Martel

    (@mike_cowobo)

    Hi there!

    This is possible only with some custom coding. The most elegant way I can see to do this without modifying the plugin is using the byline as the popup.

    What you’d do is hide the byline extra content (ie. the excerpt, categories, etc. that you can show on WP Tiles) using CSS:
    .tile-byline .extra { display: none; }
    Next, you only have to write a little JS to show the byline in a popup. Something along the lines of:

    (function($){
        var $tiles = $('.tile-bg, .tile-color');
    
        $tiles.attr('onclick',''); // Reset the WP Tiles click handler
    
        $tiles.click(function(e){
            var text = $(this).find('.tile-byline .extra').text();
            alert(text);
        })
    })(jQuery);

    (this works! Just replace the alert by your popup function..)

    Good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Pop up on hover or click’ is closed to new replies.