Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #688453

    Hi,

    i tried to create a custom link on a Secondary Menu Location and i want to open it in lightbox so i put ?iframe=true after the link but it seems it doesn’t work.

    i think it does not work ONLY in “Secondary Menu”. In the “Main Menu” and “Footer Menu” popup works fine.

    #688984

    Hey pandaweb,

    Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Regards,
    Rikard

    #689183

    top left nav, Popup

    #691436

    Hi,

    We can’t modify the functions.php file. Please remove the “lightbox” code there and replace it with the following:

    // custom script
    add_action( 'wp_footer', 'ava_custom_script' );
    function ava_custom_script() {
    	?>
    	<script type="text/javascript">
    	(function($) {
    		function b() {
    			$("#header_meta a").magnificPopup({
    	    		type: 'iframe',
    	    		mainClass: 'avia-popup mfp-zoom-in',
    	       	});
    		}
    
    		$(window).load(function() {
    			b();
    		});
    
    	})(jQuery);
    	</script>
    	<?php
    }

    Remove browser cache or hard refresh before testing the page.

    Best regards,
    Ismael

    #691530

    Thanks, it works.

    #691553

    Hi,

    Glad we could help!
    We really appreciate it if you rate our theme on themeforest .
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Vinay

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘popup doesn't work on Secondary Menu’ is closed to new replies.