Forum Replies Created
-
AuthorPosts
-
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
I need to solve this thing urgentely as another problem aroused with the updating: I realized that the hover function on submenus doesn’t work well (it works as soon as I refresh the page and then stop). I add in the private section an example
I just updated it but the problem is still there. The site has also another problem with navigation arrows when using lightbox in a masonry gallery (see my post https://kriesi.at/support/topic/navigation-arrows-not-visible-in-masonry-gallery/). Your colleague says it is a problem with the declaration of the magnific popup function and the way I enqueued.
I wonder how I can solve it. I used the same function declared in the same way in other web sites and no probelms aroused.
Thanks for helping
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
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 6 years, 5 months ago by
elenapoliti.
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 exactlyJune 23, 2018 at 8:41 am in reply to: Magnificent Popup not workin (not recognized as a function) #976851Thanks Ismael, now finally it work perfectly and smoothly!!!
Such a great team you are!
June 20, 2018 at 4:49 pm in reply to: Magnificent Popup not workin (not recognized as a function) #975381Sorry Victoria for answering only now. Unfortunately it still doesn’t work.
June 15, 2018 at 2:41 pm in reply to: Magnificent Popup not workin (not recognized as a function) #973334Could you please suggest me how could I load it explicitly?
ThanksJune 15, 2018 at 1:10 pm in reply to: Magnificent Popup not workin (not recognized as a function) #973284Here they are! Thanks
June 15, 2018 at 10:55 am in reply to: Magnificent Popup not workin (not recognized as a function) #973225Hi Mike I did try to cancel completely the enfold folder files and copy the new version via FTP, but still the problem remains.
Actually the funny things is that I did the same with other three web sites and everything went well: the popup function worked and nothing broke.
I am working abroad for a month and I don’t have with me a local copy of the web site, so I cannot test it locally in a quick way (I should duplicate the whole web site and download it locally but it would take quite a long). Nothing you could do from your side to help me?
Thanks
June 13, 2018 at 4:58 pm in reply to: Magnificent Popup not workin (not recognized as a function) #972367Hi Mike, no way: the problem is still there. The popup modal is on the pages of some products. I add in a private section the access to the web site and one example page (a product) where the problem exists.
Also I noticed that in product pages the main menu (that should be sticky at the top) has a transparent space above it. As it is detached from the very top of the screen, which is quite annoying.If you could help me I would appreciate it very much
Thanks
-
This reply was modified 6 years, 9 months ago by
elenapoliti.
June 11, 2018 at 6:27 pm in reply to: Magnificent Popup not workin (not recognized as a function) #971332Hi Mike, excuse me but I actually added also the line
add_action('wp_head', 'popup_inline');
I just forgot to paste it in my previous msg.
However it doesn’t work. In reality it always worked and messed up after an update. So I am pretty sure that both the snippet in the funcrions.php file and the snippet in the html code is ok.
I will try to disable the plugins and see if something changes. Otherwise I will send you an access to the site.
Thank you very much
I tried to restore the previous Enfold version but the problem remains. I also posted the problem to the WPML support forum. Actually what doesn’t work are the products with variations
Thanks very much now it is working! What was the problem? As I should update via ftp other websites and wouldn’t like to step in the same problem.
By the way did you have the chance to check the date issues belw the posts?
Again thank you
Here they are. Thanks and if you also can give a look to the problem that the date doesn’t appear below the post title in the news page
Thanks
March 2, 2018 at 6:56 pm in reply to: toggle sections by clicking an image and sliding down to anchor text #920482Yes please close it
February 28, 2018 at 6:12 pm in reply to: toggle sections by clicking an image and sliding down to anchor text #919206I found the answer: just added the following script to the functions.php file (if somebody else is interested)
function show_section(){ ?> <script> jQuery(document).ready(function( $ ) { $(".image").click(function(){ if ($('#section').css('display') == 'none') { $("#section").css("display","block"); } else { $("#section").css("display","none"); } document.getElementById('diecimetri').scrollIntoView(true); }); }); </script> <?php } add_action('wp_footer', 'show_section');
and then I added a css rule as follows
#section { display:none; }
February 8, 2018 at 10:01 am in reply to: Woocommerce terms & conditions duplicated in checkut page #909651Thanks Ismael I just did it but the problem is still there.
February 7, 2018 at 5:34 pm in reply to: Woocommerce terms & conditions duplicated in checkut page #909322That’s a problema as the text is long and it is managed with an accordion. It has always worked perfectly, but I guess after one of the latest release of Enfold or woocommerce (sincerely I cannot say which), the problem came out.
The issue then is not solved. I’ll simplify the content of the page, but this is a real pity
Thanks
February 6, 2018 at 9:24 am in reply to: Woocommerce terms & conditions duplicated in checkut page #908425Sorry for the delay: I lost your communication! The page https://whalesanddolphins.tethys.org/checkout/
Thanks
I actually decided to have only a burger menu, since I didn’t find any better solution.
Thanks @classywebsites I had the changelog. My wonder was how to handle the inclusion of custom php files
Hi all can you explain a little bit how I can get advance about the new feature on the Enfold 4.2.2
“- added: filter “avf_register_custom_backend_styles” to include custom php files in backend to allow for style modifications”
Thanks very muchJanuary 25, 2018 at 10:37 am in reply to: Setting tooltip size on mobile devices for hotspot images #902736You are right!! I had the minify plugin activated that prevented the use of newly added css rules. Now it works like a charm!
Thank you very much: always a great support!!-
This reply was modified 7 years, 2 months ago by
elenapoliti.
January 25, 2018 at 9:51 am in reply to: Setting tooltip size on mobile devices for hotspot images #902698Thanks Nikko, but nothing happens. The tooltips are still visible in the same way.
January 23, 2018 at 11:09 pm in reply to: Setting tooltip size on mobile devices for hotspot images #901747Hi I copy in the private content an example page I would like to create. There is an drawing (image) with some hotspots in which an explanation is visible. My goal is to make the explanation well readable on a mobile device (iphone 6 for example), even in daylight (sun light). Do not consider the colours I used now as it is only an example. My idea is to have the tooltip that has a certain heght (let’s say fixed height) and a 100% width in relation to the mobile device screen width.
I found which was the problem: I installed and activated some time ago the plugin Fast Velocity Minify which I imagine created a minified copy of my CSS files. The site was pointing to it and not to the last version of css files I uploaded. Hence any change to it didn’t work. I deactivated it and everything was working fine
Sorry for the disturb, but this may be of help for someone else
Yes please, close the ticket
Ok thank you!
-
This reply was modified 6 years, 5 months ago by
-
AuthorPosts