mark l chaves
Forum Replies Created
-
Forum: Plugins
In reply to: [Gallery Image Captions (GIC)] GIC clashes with other pluginHi @lukenc ,
I installed Events Manager and saw that my custom captions totally disappeared. Only the default image captions showed up.
I found code in Events Manager that takes over the WordPress gallery shortcode to “check for recurring events.” That’s what their source code comment says. I’m not sure why they’d need to override the gallery shortcode to do that.
GIC overrides the gallery shortcode so we can use a filter to customize gallery captions (a long overdue feature request).
Anyway, the Events Manager version wins because they use a hook with a super low priority (1000).
If you want GIC to win the override, you can add this hook to your child theme’s functions.php or use a code snippets plugin.
// Force GIC to override Event Manager's override for the gallery shortcode. function mlc_wp_gallery_override_init() { remove_shortcode('gallery'); add_shortcode('gallery', 'galimgcaps_gallery_shortcode'); } add_action('init','mlc_wp_gallery_override_init', 1001);Obviously, change mlc_wp_gallery_override_init to your function name.
You’ll need to check your Events Manager content for side effects.
Thanks!
Forum: Plugins
In reply to: [Gallery Image Captions (GIC)] GIC clashes with other pluginHi @lukenc ,
Thanks for the heads up. I’ll need more details to be able to help.
If Events Manager is free, I’ll install it on a test site with GIC running to see what you mean by “not working”.
Cheers!
Hey @theonebeautyla,
Your page passes the Chrome Dev Tools Lighthouse audit too.
https://share.wppopupmaker.com/mXubl1BN
Your popup will have aria-hidden=”false” when the popup is hidden (as it should). You can inspect the popup source on your page after you close the popup to see that.
Inspect the popup source again once you open the popup and you’ll see it’ll be set to “true”. Which is what we want.
Great job on the site ๐๐ผ
Shout if you have any more questions.
Hey @festanca ,
I see a couple of problems:
- There’s a picture-in-picture violation in the console. Please remove the “picture-in-picture;” parameter from your video embed code to fix that.
- For the video not displaying, I wonder if lazy loading is blocking your video from showing. Because I see something forcing the video to have 0 width and 0 height. Generally, lazy loading videos doesn’t work well in a popup. Try turning off lazy loading for that popup or that page.
If you still can’t see the video after turning off lazy loading, you can try custom code to force the video to display. Here’s some code I added to a local test copy of your page.
jQuery(document).ready(function ($) { $('#pum-2886') .on('pumAfterOpen', () => { $("iframe").css({ "width": "100%", "height": "100%" }); console.log("Should have set the iframe's width and height by now."); }); }); // jQueryYou can see how my code forces the video to display when the popup opens.
https://share.wppopupmaker.com/P8uNAmNJ
Here are instructions for adding custom JavaScript to your WordPress site.
https://docs.wppopupmaker.com/article/84-getting-started-with-custom-js
Only try the custom code that as a last resort.
If you’re tired of mucking around with all that, you might want to check out the Popup Maker Videos extension. It should get you up and running in a couple of clicks. And, you won’t need to write custom code to stop/pause your video after someone closes the popup. You’ll probably notice that happen if you get the video to display.
Cheers!
- This reply was modified 3 years, 4 months ago by mark l chaves. Reason: Copy/paste error in the code block
Hey @kawindsor ,
Any time!
I’m closing this thread. Feel free to reach out again when you need to ๐
Have a great weekend ๐
Hey @kawindsor ,
Awesome. Thanks so much for letting us know.
We can see your popup in Safari. You might need to clear your Safari cache or open a private Safari browser window.
Here’s your popup displaying for us on Safari.
https://share.wppopupmaker.com/nOu11jO6
Here’s more info on clearing your browser cache.
https://wordpress.org/support/article/i-make-changes-and-nothing-happens/#clearing-the-browser-cache
BTW, we have a step for clearing out your caches and a link to that guide above in our help article for future reference.
Let us know if you can see your popup on Safari after clearing your caches.
Cheers!
Hey @kawindsor ,
Thanks for sharing a link to your site and telling us how to reproduce that problem.
I just want to confirm. When I add that CSS override fix from @kimmyx to my browser dev tools while I’m on your homepage, it fixes the problem.
Here’s a quick screencast of your popup working after I added the CSS fix.
https://share.wppopupmaker.com/P8uNNzPr
Here’s the full help guide again if you need it.
https://docs.wppopupmaker.com/article/544-your-popup-is-not-displaying-on-your-homepage
If you need instructions for adding custom CSS to your site, check out this article.
https://docs.wppopupmaker.com/article/287-getting-started-with-custom-css
Ping us back here if you get stuck anywhere.
Cheers!
Hey @breathestudio,
I just wanted to chime in in case you’re still interested or if anyone else lands on this thread.
Can you tell us what kind of content you have in your 50 popups?
In the meantime, Popup Maker itself is lightweight. But, if you’re loading lots of text, images, and even videos in each of your 50 popups, that would slow down your page load. That’s because all that content needs to be loaded at the same time your page loads.
If you don’t need all 50 popups on 1 page, you can use targeting rules. But, if you need all 50 on 1 page you can either:
- Optimize each popup (get rid of bloat) so they load faster.
- Optimize the page so it only shows maybe 8-10 portfolio items/popups at a time (pagination).
- Try the Remote Content (RC) extension which loads popup content only when it’s displayed. Sort of like a “lazy load” for popups.
You can learn more about page and popup performance in this thread.
Thanks!
- This reply was modified 3 years, 5 months ago by mark l chaves. Reason: Clarification
Forum: Fixing WordPress
In reply to: Appearance>Menus Disappear When UpdatingHey @truebird,
I’d like to reproduce the problem you’re seeing. But, it looks like Flatsome is a premium theme.
Are you seeing the issue on a free theme that I can test with?
Thanks!
Hey @opvab,
It looks like I can get your popups to work. Can you let me know if this is what you expect?
https://share.wppopupmaker.com/wbuvNLB8
If so, please try this CSS override.
https://docs.wppopupmaker.com/article/544-your-popup-is-not-displaying-on-your-homepage#conflict
Let us know how that goes.
Have a great weekend ๐
Hey @subnoodle, thanks so much for your feedback. We’ll look at ways to make this setting more obvious.
In the meantime, always try doing a search.
When I Google
popup maker google fonts
, I get these top 3 hits.
1. Avoid loading Google Fonts – WordPress.org https://wordpress.org/support/topic/avoid-loading-google-fonts/
2. Settings Page – Popup Maker Documentation https://docs.wppopupmaker.com/article/493-popup-maker-admin-settings-submenu
3. How to remove Google Import font ยท Issue #636 – GitHub https://github.com/PopupMaker/Popup-Maker/issues/636
All 3 hits give the correct answer for disabling Google Fonts in Popup Maker.
Also, when you go to the Popup Maker docs page and search on
google fonts
, the first hit is the Settings Page which covers the Google Fonts setting.
https://docs.wppopupmaker.com/search?collectionId=559c73b9e4b03e788eda169d&query=google+fonts
Cheers!
Hey @thekendog,
Are you sure it’s a js-cookie conflict?
On my site, I enqueue a CDN version of js-cookie and run Popup Maker at the same time. I’ve done this for over a year with no issues. I’m running Popup Maker 1.16.10.
See if you have other plugins like Woo that load js-cookie. Use something like the Query Monitor plugin to tell you how many times you’ve got js-cookie loaded, what handle it has, and which plugin is loading it.
As a last resort and if you’re sure it’s a js-cookie conflict, try overriding the existing version of js-cookie with yours by deregistering js-cookie first.
E.g.,
// Let's remove the existing js-cookie library. wp_dequeue_script('js-cookie'); // Make sure you use the correct handle. wp_deregister_script('js-cookie'); // Make sure you use the correct handle. // And, we'll replace it with our own ;-) wp_register_script( 'js-cookie-3-0-1', 'https://cdn.jsdelivr.net/npm/js-cookie@3.0.1/dist/js.cookie.min.js', array(), '3.0.1', false ); wp_enqueue_script('js-cookie-3-0-1');Hey @dadadmin,
I think the original thread above was about closing the popup after the form redirects.
It sounds like you want to set a cookie for the popup after your form submission does a redirect. Is that right?
If so, you can try using custom code to force setting a cookie since form redirects bypass Popup Maker’s cookie settings.
Here’s a quick example that’s not perfect, but it should get the job done. Feel free to use and improve upon it. Make sure you follow the comments and instructions in the code snippet.
https://gist.github.com/marklchaves/71468bf17e00befa6057a95ab3fc0840
If you get stuck anywhere, please post a new forum thread since this one is already closed.
Thanks!
- This reply was modified 3 years, 7 months ago by mark l chaves. Reason: Clarification
Forum: Fixing WordPress
In reply to: Shortcode for displaying the user’s first name?Hi @silumant,
You can try a custom shortcode. Here’s an example.
add_shortcode( 'my_first_name', function ( $atts ) { $current_user = wp_get_current_user(); if ( ! ( $current_user instanceof WP_User ) ) return; $atts = array_change_key_case( (array) $atts, CASE_LOWER ); extract( shortcode_atts( array( 'display_tag' => 'h2', ), $atts ) ); $o = '<div class="wporg-box">'; $t = $display_tag ? $display_tag : 'h2'; // Just in case. $o .= '<' . $t . '>' . esc_html__( $current_user->user_firstname ) . '</' . $t . '>'; $o .= '</div>'; return $o; } );Add this to your child theme’s functions.php file or use a code snippets plugin.
Usage:
[my_first_name],[my_first_name display_tag="h1"]Hope that helps ๐