Hi,
Loving the new column layout styling features!
Is it possible to add a link to the complete column block? So that the whole block is clickable?
Hey user877!
Please turn on custom CSS field – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and give your column element a custom CSS class and then add following code to Functions.php file in Appearance > Editor
function add_custom_div(){
?>
<script>
jQuery(".your-custom-css-class").click(function(){
window.location = jQuery(this).find("a:first").attr("href");
return false;
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_div');
There should be a link inside your column box.
Regards,
Yigit
this worked! thanks.
The whole column area is now clickable.
One last question: how do we make the mouse arrow show the ‘hand’ anywhere within the column area?
Currently it only appears on the link itself.
Hi!
Great! You are welcome :)
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.your-custom-class:hover { cursor:pointer; }
Regards,
Yigit
perfect thanks.