Tagged: , ,

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #597444

    Hi,
    Could you please help me to understand why Magnific Popup v1.1.0 by Dmitry Semenov doesn’t work with Enfold.
    I can see that you use this library in this theme but I cannot force it to work as a ajax type of popup.
    Example:

    <a href="/path-to/file.html">Popup</a>
    <script type="text/javascript">
    	$(document).ready(function() {
    		$('.white-popup').magnificPopup({
    			type: 'ajax',
    			alignTop: true,
    			overflowY: 'scroll'
    		});        
    	});
    </script>

    Thank you.
    Have a good day.

    • This topic was modified 8 years, 8 months ago by jewsforjesus.
    #598219

    Hey jewsforjesus,

    I’m not sure, could you provide us with a link to the site in question so that we can take a closer look please?

    Thanks,
    Rikard

    #598870

    Hi,
    Thank you.
    I created a password protected post for you.

    #599189

    Hi!

    Please add following code to Functions.php file in Appearance > Editor

    function avia_custom_magnific(){
    ?>
    <script type="text/javascript">
    	jQuery(document).ready(function() {
    		jQuery('.white-popup').magnificPopup({
    			type: 'ajax',
    			alignTop: true,
    			overflowY: 'scroll'
    		});        
    	});
    </script>
    <?php
    }
    add_action('wp_footer', 'avia_custom_magnific');

    Cheers!
    Yigit

    #599315

    Thank you but it doesn’t work :-(
    I can see strange strings such as:

    function avia_custom_magnific(){
    ?>
    <script type="text/javascript">

    and

    <?php
    }
    add_action('wp_footer', 'avia_custom_magnific');

    Is this correct?
    Where should I put this code? At the end of the file or there is a special place inside of it?

    Thank you.

    • This reply was modified 8 years, 8 months ago by jewsforjesus.
    #600246

    Hi!

    You have to add that code at the very bottom of the functions.php file. Make sure that you copy it from the forum, not from your email.

    Note that path to the file that will be loaded should have the same origin (e.g. be on the same domain), learn more.

    Cheers!
    Ismael

    #600293

    Hi,
    Thank you for your time but I cannot force it to run!
    Here you are what has been done:
    In the post: <a href="/torah-comments/ajax.html">Popup</a>
    functions.php:

    function avia_custom_magnific(){
    ?>
    <script type="text/javascript">
    	jQuery(document).ready(function() {
    		jQuery('.white-popup').magnificPopup({
    			type: 'ajax',
    			alignTop: true,
    			overflowY: 'scroll'
    		});        
    	});
    </script>
    <?php
    }
    add_action('wp_footer', 'avia_custom_magnific');

    What am I doing wrong? When I click on the link it opens a new page not a popup.
    Thank you.

    • This reply was modified 8 years, 8 months ago by jewsforjesus.
    #601195

    Hi,
    Could you please give me your advice how to fix this issue?
    Thank you.
    Best regards.

    #601310

    Hi!

    Do you mind creating a temporary admin login and posting it here privately?

    Cheers!
    Yigit

    #601511

    Hi,
    I created a password protected post for you.
    Best regards.

    #601953

    Hi!

    Thanks but we are going to need a temporary admin login to look further into the issue.

    Best regards,
    Yigit

    #602168

    Hi,
    You can find login info in the private area.
    Best regards.

    #603763

    Hi!

    Thank you for the info. You forgot to add the class attribute (white-popup) in the link tag. We created a test page here. http://cis.jewsforjesus.org/test/

    Best regards,
    Ismael

    #605804

    Thank you, Ismael.
    Have a good day :-)

    #605938

    Hi,

    Great, glad we could help :-)

    Best regards,
    Rikard

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