Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #710390

    Hi Team Kriesi,
    another challenge for your team ;).
    Maybe you can figure out how to. I have a grid with different content and want to make the grid cell
    1. clickable and prvide the cell with a slight mouse-over.
    Just like the cells in
    http://compliments.dk/
    Do you have any idea?

    #710835

    Hey!

    Please enable the custom css class field: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then edit your cell and give it a custom CSS class and then add following code to Functions.php file in Appearance > Editor

    function avia_clicable_cell(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery(".my-custom-class").click(function() {
      window.location = jQuery(this).find("a").attr("href"); 
      return false;
    });
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'avia_clicable_cell');

    It will get the link you have in your cell and apply it to whole box

    Best regards,
    Yigit

    #710861

    Works perfect,
    thanks a lot.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘grid clickable with mouse-over’ is closed to new replies.