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
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
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
checked it.. thx.. = SOLVED
thx a lot
chris