Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1017446

    Hi I realized that in my masonry gallery (with the lightbox activated) the navigation arrows are not showed. I actually tried to see if there was some old code (ccs or a particular function) that I added in the past and forgot to delete, but it doesn’t seem so.

    Could you please give a look? The masonry gallery in a portfolio item (there are some like that). I add an example page in the private content together with wp access

    Thanks

    #1018067

    Hey Elena,

    Hmmmm, it seems to freeze completely when open. Have you tried disabling all active plugins to see if the issue resolves?

    Best regards,
    Jordan Shannon

    #1020682

    Sorry for the delay, I tried to deactivate the plugins that were included recently but still it doesn’t work. All the other plugins are woocommerce related and when uploaded they didn’t create any problem.
    That is a section that I do not check often, so I don’t know when the problem occurred exactly

    #1021689

    Hi elenapoliti,

    Best regards,
    Victoria

    #1022036

    Hi Victoria, referring to the script I added to my functions.php (https://cl.ly/7987dc512db0 The error comes from here, you need to have the Magnific popup explicitly enqueued too), it is really strange as I always used that script in other settings and did work.

    What do you mean that I should explicitly enqueued ? Thanks for explanation

    Actually on the same web site I have the problem that the Manific popup is no more working (see post https://kriesi.at/support/topic/magnificent-popup-not-working-part-2/#post-1021763). So actually I have two issues. In the meanwhile I try to update the theme and see what happens.

    Best regards

    • This reply was modified 5 years, 6 months ago by elenapoliti.
    #1022050

    Hi Victoria I just want to tell you that the update didn’t solve the problem. As you said is a problem of the magnific popup functon which is not declared in the proper way.

    Could you please help me in solve it? Thanks

    #1022326

    Hi elenapoliti,

    Here is a thread with several solutions

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1022636

    Hi Victoria, thanks for suggesting that solution. I added these lines to my functions.php

    add_action('wp_enqueue_scripts', 'enqueue_magnific_popup_styles');
    function enqueue_magnific_popup_styles() {
    	wp_register_style( 'magnific_popup_style', get_stylesheet_directory_uri() . '/magnific-popup.css' );
    	wp_enqueue_style( 'magnific_popup_style' );
    }
    add_action('wp_enqueue_scripts', 'enqueue_magnific_popup_scripts');
    function enqueue_magnific_popup_scripts() {
    	wp_register_script( 'magnific_popup_script', get_stylesheet_directory_uri() . '/jquery.magnific-popup.js', array( 'jquery' ) );
    	wp_enqueue_script( 'magnific_popup_script' );
    }

    Then there are the jquery that make the popup working

    function popup_inline() { ?>
    <script type="text/javascript">
    jQuery(window).load(function(){
    	jQuery('.open-popup-link').magnificPopup({
    	  type:'inline',
    	  midClick: true // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href.
    	});
    });
    </script>
    add_action('wp_footer', 'popup_inline');
    <?php }

    Still the popup is not working, the navigation arrows in the lightbox gallery are not shown and images seems freezed, links to the submenus are not working (this last after having updated to Enfold 4.4). I add in the private section reference pages. I also add an admin account for your convenience. I would really be galdful if you could help me solve these problems. Thanks

    #1023718

    Hi,

    Thanks for the update.

    The header.php file in the child theme folder is outdated. You have to use the latest version of the file, which contains a few lines of code related to the lightbox option.

    Best regards,
    Ismael

    #1023781

    Hi Ismael, thanks that was the problem!! I solved contemporarly navigation arrows and Magnific popup issues.

    The only things that remains is the submenus hover function that doesn’t work properly

    https://whalesanddolphins.tethys.org/cetacean-sanctuary-research/ (submenu not working)

    #1024068

    Hi elenapoliti,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    #sub_menu1 {
        z-index: 301;
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1024094

    Thanks Victoria, that solved the problem!

    #1024100

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

    #1024102

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

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