Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #569427

    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

    #569467

    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

    • This reply was modified 8 years, 10 months ago by Yigit.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.