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

    Hi,
    i have a question which was not answered in this topic:

    https://kriesi.at/support/topic/hintergrund-der-sich-in-breite-und-hohe-anpasst/

    How can i add a link to this background image?

    Thanks! Simon

    #268230

    Hi Simon!

    That’s not possible, but you can use jQuery to do to bind the click event to the body element, try adding this to your functions.php file:

    function add_custom_script(){
    	?>
    <script>
    jQuery(window).load(function(){
    jQuery('body').click(function(e){
        if (e.target === this) {
            window.location = "_URL_HERE_"
        }
    });
    });
    </script>
    	<?php
    }
    add_action('wp_footer', 'add_custom_script');

    Best regards,
    Josue

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