mrtechnique
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] Google Console ErrorGravity Forms support just responded and said that they don’t provide support for AMP yet. Could you update the sanitizer or give me the code to use for the shortcode to add in the functions.php file?
Forum: Plugins
In reply to: [AMP] Google Console ErrorWeston,
Thanks for responding so quickly, and I apologize for my super slow reply. I just emailed Gravity Forms support about this.
Can forms be displayed on AMP pages? If they Gravity Forms doesn’t have any AMP solutions, can you update the sanitizer?
Forum: Plugins
In reply to: [Better WordPress Minify] Plugin Causes Divi’s Visual Builder ProblemsI take that back. I still have the same problems. I can’t edit with the Visual Builder unless I have the HTML tab selected.
Forum: Plugins
In reply to: [Better WordPress Minify] Plugin Causes Divi’s Visual Builder ProblemsRagnar, I just added the plugin again, and the Visual Builder works for me. Khang, does it improve site speed out of the box? Or do I need to change some settings?
Forum: Plugins
In reply to: [Better WordPress Minify] Plugin Causes Divi’s Visual Builder ProblemsGreat. Thanks! Divi is a popular WordPress theme.
Forum: Plugins
In reply to: [Fast Velocity Minify] Caused Envira Gallery CSS IssuesI know the envira.css file is needed because all of the styles were removed. Everything works fine now, so I’m happy with the speed. I sent you an email through your website’s contact form with my client’s URL if you want to see the gallery in action.
Forum: Plugins
In reply to: [Fast Velocity Minify] Caused Envira Gallery CSS IssuesThanks for the quick response. I looked through the FAQ. I added the Envira CSS and JS files to the Ignore List:
/wp-content/plugins/envira-gallery/assets/css/envira.css
/wp-content/plugins/envira-gallery/assets/css/responsivelyLazy.css
/wp-content/plugins/envira-gallery/assets/css/justifiedGallery.css
/wp-content/plugins/envira-gallery/assets/js/min/envira-min.jsI’m using WP Super Cache on the site. I deleted the processed files in the Fast Velocity Minify Settings area. When I did that, I think all of the CSS and JS was stripped from the site. Luckily, I went to the WP Super Cache Settings and deleted the expired cache. You did mention in your FAQ that you recommend that I delete the cache in the caching plugin, also.
The Envira Gallery is now showing up fine now. Thanks again for the help.
Forum: Developing with WordPress
In reply to: Add async in enqueueThanks for answering so quickly, and I apologize for my slow reply. I’m having a little trouble wrapping my head around this. This line calls the regal_tag function:
add_filter( 'script_loader_tag', 'regal_tag', 10, 3 );
The function only adds async to the script with the chat-script handle.
What’s the callback function? Is it regal_tag? If I used a lower number than 10 in the filter, would the code appear lower in the code? I added the code you gave me on this site:
Forum: Developing with WordPress
In reply to: Add async in enqueueThat solved my problem. Thanks a lot, Jose! This isn’t as important, but how can I make the script the last one before the closing body tag?
What does the 10 and 3 represent in the add_filter command?
Forum: Developing with WordPress
In reply to: Add async in enqueueI need the script line to be outputted like this:
<script src="//www.apex.live/scripts/invitation.ashx?company=regalrestorationservices" async="async"></script>
- This reply was modified 7 years, 6 months ago by mrtechnique.
Forum: Developing with WordPress
In reply to: Add async in enqueueSteve,
Thanks for the quick answers! I used your first solution. It helped, but the script I’m enqueueing isn’t JavaScript. When I added the code, this is what I got as the output:
<script type='text/javascript' src='//www.apex.live/scripts/invitation.ashx?company=regalrestorationservices&ver=ff0ea97f0f9e034a4cf07eab83d15fce' async='async'></script>
How can I remove the type=’text/javascript’ part?
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Conflict with WPJBThanks, Angelo. Wouldn’t that change be overwritten with a plugin update? The job board plugin author sent me a great solution. I want to post it on here just in case someone else runs into this problem.
Just add this code to the wp-config.php file to change “location” to “event_location”
define('EM_POST_TYPE_LOCATION','event_location');
Forum: Plugins
In reply to: [SyntaxHighlighter Evolved] Narrow WidthNever mind. I fixed it. It was a line from Divi’s CSS style.css file that caused it:
table.cart th, #main-content table.cart th, table.cart td, #main-content table.cart td, table.cart tr, #main-content table.cart tr, #content-area table tr, #content-area table td, #content-area table th { max-width: 100px; padding: 0.857em 0.587em; }
I just set the max-width to none, and that took care of the issue.
Forum: Plugins
In reply to: [Stripe for WooCommerce] Payment error [URGENT]I found this out today when a client tried to buy a subscription. Since the official plugin is free, there is no need to use the third-party plugins anymore. Thanks, WooCommerce!
Forum: Plugins
In reply to: [AMP] Unknown Syntax ErrorI have that plugin installed. I followed the instructions on the Yoast blog about making my blog posts AMP ready.