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

    This is the landing page with image mentioned above:

    Also would like to know how to enlarge hovering text when clicking on the image to go to page.

    Thanks

    #1052183

    Hey Huan_Rimington,

    Thank you for using Enfold.

    That option is not available by default but this script should help.

    add_action('wp_footer', 'ava_add_link_to_home_section');
    function ava_add_link_to_home_section(){
    ?>
    <script type="text/javascript">
    (function() {
    	const hm = document.querySelector('#home');
    
    	if( hm ) {
    		hm.addEventListener( 'click', (event) => {
    			event.preventDefault();
    			window.location.href = "http://www.google.com";
    		});
    	}
    })();
    </script>
    <?php
    }
    

    This script will redirect you to another page when you click on the “home” section.
    Add this css code to change the mouse cursor.

    #home {
        cursor: pointer;
    }

    Best regards,
    Ismael

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