Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #736379

    Hi there,

    I implemented a submenu and added a logo following https://kriesi.at/support/topic/logo-in-fullwidth-submenu/ .

    How can I make that logo a clickable link?

    Best Regards

    #737590

    Hey!

    Thank you for using Enfold.

    Please remove the css modification then add this one.

    .submenu_logo {
        width: 120px;
        height: auto;
        overflow: hidden;
        position: absolute;
        top: 0;
        left: 10%;
    }

    After that, add this snippet in the functions.php file.

    // submenu logo
    function ava_custom_script() {
    ?>
    	<script type="text/javascript">
    	(function($) {
    		function a() {
    			$('#top .av-submenu-container').append("<a href='URL' class='submenu_logo'><img src='//thymeforachef.com.au/wp-content/uploads/2017/01/Megara-logo-340x156.png' /></a>");
    		}
    
    		a();
    	})(jQuery);
    	</script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script');

    Adjust the URL.

    Regards,
    Ismael

    #737640

    Perfect, thanks. You can close this one.

    #738097

    Hi,

    Great, glad we could help. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Link background image / logo in full width sub menu’ is closed to new replies.