Tagged: , , ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #647640

    Hi,

    I have added the code in my child functions.php to allow me to add popup content. It works fine from a link in the body content. I have also used the code to add a pop-up from the menu (contact us). This also works fine unless you reduce the browser window width and the responsive menu kicks in. Then the link no longer works. Interestingly, the link in the body content works fine in responsive mode, so I’m guessing its someting to do with the Avia framework.

    You can see the effect here: http://www.babcocksr.com/ (Modal activates on the menu item called ‘Contact’)

    Any ideas?

    rog

    #647665

    Hey thewisebunny!

    Can you please let me know which mobile browser you are using please?

    Thanks a lot

    Best regards,
    Basilis

    #647669

    Hi Basilis,

    I tried it on Chrome for Android, but it is also showing the same effect in Chrome for OSX if you reduce the width of the browser window.

    Cheers

    rog

    #648971

    Hi,

    What is the code that you use? What is the selector? Note that the menu item on mobile menu is different from the desktop menu item.

    Best regards,
    Ismael

    #649093

    Hi Ismael,

    Thanks for taking a look.

    The menu link is #form_popup with a link relationship of ‘magnific’
    The popup is hidden into the copyright line – using this rather than the analytics field means you can include shortcodes!
    The popup div is <div id=”form_popup” class=”white-popup mfp-hide”>
    The popup script is as follows:

    /* new popup function */
    add_action( 'wp_head', 'enfold_customization_add_magnific_handler' );
    function enfold_customization_add_magnific_handler() {
    	?>
    	<script type = "text/javascript">
    	jQuery(document).ready(function() {
    		jQuery('a[rel=magnific]').magnificPopup({
    			type: 'inline',
    			preloader: false,
    		});
    	});
    	</script>
    <?php
    }

    Cheers

    rog

    #650093

    Hi,

    Looks like it’s incompatible with the mobile menu script. Will you consider adding a contact button beside the mobile menu icon? If yes, please refer to this link: http://kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/

    Best regards,
    Ismael

    #650130

    Thanks for looking into it Ismael,

    I think it will probably give a better UX if I just pop the contact form on a normal page.

    Kind regards

    rog

    #651180

    Hi,

    so can we close this thread or do you still need any help with it?

    Best regards,
    Andy

    #651367

    hi Andy,

    Yep – please do.

    Kind regards

    rog

    #651929

    Hi,

    Ok, thanks for letting us know :-)

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Magnific popup not opening in responsive mode’ is closed to new replies.