Tagged: enfold, Masonry Gallery
-
AuthorPosts
-
October 3, 2018 at 11:06 am #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
October 5, 2018 at 12:28 am #1018067Hey 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 ShannonOctober 12, 2018 at 11:44 am #1020682Sorry 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 exactlyOctober 15, 2018 at 6:03 pm #1021689Hi elenapoliti,
Best regards,
VictoriaOctober 16, 2018 at 8:47 am #1022036Hi 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 6 years, 1 month ago by elenapoliti.
October 16, 2018 at 9:17 am #1022050Hi 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
October 16, 2018 at 6:58 pm #1022326Hi elenapoliti,
Here is a thread with several solutions
If you need further assistance please let us know.
Best regards,
VictoriaOctober 17, 2018 at 9:10 am #1022636Hi 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
October 19, 2018 at 2:23 am #1023718Hi,
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,
IsmaelOctober 19, 2018 at 8:38 am #1023781Hi 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)
October 19, 2018 at 5:24 pm #1024068Hi 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,
VictoriaOctober 19, 2018 at 5:37 pm #1024094Thanks Victoria, that solved the problem!
October 19, 2018 at 5:41 pm #1024100Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan ShannonOctober 19, 2018 at 5:41 pm #1024102Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- You must be logged in to reply to this topic.