Hi
I am trying to link an image to simp popups. Is there a way to give an image an id. you will see on the page http://www.thepark.ie/shopping/ I have the heading linked to the popup. Im trying to link the image
Hey hobbit1!
Please turn on custom CSS field for ALB elements – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then give your image a custom CSS class and then add following code to functions.php file in Appearance > Editor
function add_custom_link_target(){
?>
<script>
jQuery(window).ready(function(){
jQuery('.your-custom-class img').attr('id','your-custom-id');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_link_target');
Cheers!
Yigit