LouDB
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Auto ads are not showing in amp pagesHi, I’ve been having the exact same problem, it also appeared two days ago. Same thing as you Anuj, AMP Auto-Ads stopped working.
I use the plugin on 3 websites, 2 of them show a major drop of impressions such as this one: https://pasteboard.co/K2q5T5h.jpg
Anuj, out of curiosity, what AMP theme are you using?
* I tried to insert a banner “manually” (through the Settings > Advertisement menu) and it displays on all AMP themes I tested.
* I tried to change the AMP theme: no auto-ads anywhere. On Design One, I see the “amp-wp-iframe-placeholder” (a grey insert that appears several times inside the post content) but nothing loads inside. On other themes, nothing displays at all.I’m not sure if the cause is the same as you Anuj!
Hi, as I mentioned the problem is solved when removing the code ?? I’m just wondering why it used to work well before (I’ve been using this code and your plugin for several years and never had any problem until this January).
Is there a way to exclude the AMP version from the code?
Such as if (!(is_amp() )) { or something similar?
Thanks! By the way, the plugin is really excellent!
Hi, found the source of the issue. It’s not a plugin, it’s actually a function for deferring the parsing of JavaScript. Not sure why it’s started to cause problems now (I’ve been using the plugin and the function for a couple of years).
if (!(is_admin() )) { function defer_parsing_of_js( $url ) { if(FALSE === strpos( $url, '.js') || ((strpos( $url, 'jquery.ui.core.min') > 0) || (strpos($url, 'jquery.min') > 0))){ return $url; } else{ return "$url' defer='defer"; } } add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 ); }
Hi, thank you for your reply. I have three sites using the plugin, same issue on the three. Those pages use the plugin:
– https://bit.ly/36w0i8a
– https://bit.ly/2GmQUsS
– https://bit.ly/3aGXlFbThank you!
Forum: Plugins
In reply to: [AMP for WP - Accelerated Mobile Pages] Compatibility issues with Yoast SEOHi, thank you for your reply, I just emailed you two screenshots of the issue (what I see with the plugin… and without). Hopefully it will help identify the source of the problem ?? I use Yoast’ latest version (6.3).
By the way, I have 3 websites with Yoast + AMP… and the same problem on all 3 websites so I suppose it’s not theme-related. I have a fourth website without the AMP plugin and Yoast works fine on it.
- This reply was modified 7 years ago by LouDB.
I have the same problem ?? The plugin WP Fastest Cache stopped working in my admin and when disabling each plugin one-by-one, I discovered it was because of Accelerated Mobile Pages.
Same problem here! Just adding my voice to both of yours, hoping it will be heard for a future update ??
Forum: Fixing WordPress
In reply to: How to get the custom CSS class of each menu item using PHP?Thank you so much, I actually don’t see why I absolutely wanted to do something complicated when it was so simple ha ha ??
Problem solved, thanks again for your help!
Forum: Plugins
In reply to: [NM Contact Forms] Loading the plugin only on a specific page?Brilliant! Brilliant! Brilliant! You rock ??
Thank you and keep up the good work!
Forum: Plugins
In reply to: [NM Contact Forms] Loading the plugin only on a specific page?Thank you so much for your prompt answer!
You’re right, I hadn’t thought about the possibility of having multiple forms in the future ??
I realize my first message wasn’t clear: the plugin loads front.css and recaptcha.js on every page of the website even if there is no contact form on it.
I tried your solution but it still loads front.css/recaptcha everywhere. It’s like:
– No form at all => no front.css/recaptcha.js
– One form or more => loading of front.css/recaptcha.js on the whole website even if the form itself is just on one page.I’m too much of a beginner in php to solve the mystery on my own ??