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

    Hi,

    we have 4 boxes with: h1, image float left, text,
    and we want do make the wohle div clickable..
    have a look:

    whats the best way or component to set this up in enfold?

    thx
    chris

    #358507

    Hey Christian!

    Please turn on custom CSS field for ALB elements firstly ( http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ )
    then go to Appearance > Editor and add following code to functions.php file

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

    Cheers!
    Yigit

    #359002

    Hi,

    thx 4 info – good to know.
    But what kind of element do we take for the content: “h1 + image = float left + text”
    When we take single elements then the “Layout Element 1/2” which is around should have a custom class or not?

    thx
    Chris

    #359033

    checked it.. thx.. = SOLVED
    thx a lot
    chris

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Best way to set up clickable content divs?’ is closed to new replies.