Tagged: lightbox popup
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.
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
top left nav, Popup
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
Thanks, it works.
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