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

    I know it is possible, but I can’t figure it out. Can someone please share with me how to link an image hotspot to a page?

    Thank you!

    #632292

    Hey lynnearciero,

    Thank you for using Enfold.

    You can add links in the hotspots. Are you trying to apply a link to the actual image? Try this in the functions.php file:

    function add_custom_script(){
    ?>
    <script type="text/javascript">
    (function($){
    	function c() {
    		$('.av-fullwidth-hotspots img').click(function() {
    			window.location.href = "http://kriesi.at";
    		});
    	}
    
    	c();
    })(jQuery);
    </script>
    <?php
    }
    
    add_action('wp_footer', 'add_custom_script');

    Turn on the custom css class field if you have multiple hotspots. http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.