niftyjohn
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] Plugin not converting wp_get_attachment_image()Woah! Thank you for noticing that! Our team built a custom lazy loader that’s much more stable than seemingly anything else out there. I needed to turn off that function if it was an AMP page. Thank you!
Forum: Plugins
In reply to: [AMP] Plugin not converting wp_get_attachment_image()I’m actually not using the method at all in the theme right now. I simply added the plugin and here are my plugin settings.
I’m trying to use as little custom code as possible for AMP because I have a few hundred to roll this out to once I get it nailed down.
Forum: Plugins
In reply to: [AMP] Plugin not converting wp_get_attachment_image()So, the theme I’m using is a heavily modified version of TwentyNineteen. I have shortcodes for sections that get_template_part() where the rest of the code is stored in basically raw HTML & PHP. So, in these files I’m simply using doing this:
<?= wp_get_attachment_image(36, ‘full’, false, array(‘alt’ => ’10 best client satisfaction, American Institute of Family Law Attorney’)); ?>
I have that directly in my header.php file and it’s not working for the logo next to the nav. I don’t think this is isolated to the shortcodes.
—
Good thought; I do have Optimole but it hasn’t been active on the staging site at all.Forum: Plugins
In reply to: [AMP] Plugin not converting wp_get_attachment_image()I think I just found it on https://xwp.github.io/amp-wp/. This the intended method if it’s a AMP page? is_amp_endpoint()
If it is, any assistance with the image problem would be great! Thanks!
Forum: Plugins
In reply to: [AMP] Plugin not converting wp_get_attachment_image()Ok, I read through the gforms resources. Takeaways: you guys won’t be directly support gforms, there might be methods to fixing them but it’ll be through custom coding via gforms methods.
That’s great. New question that is related to both. Is there a hook or global var that I can use to run code only on AMP? I haven’t discovered one yet and I didn’t notice a direct one in the documentation.
This is useful for me so that I can custom fix my img tags and gforms without compromising the desktop experience, directly or indirectly. Thanks!
Forum: Plugins
In reply to: [AMP] Plugin not converting wp_get_attachment_image()The images aren’t loading on the frontend at all and are stripped out. Look at divorce-matters.com to see the live version of how it should be looking. Here’s the backend error within the plugin for all images on the page: https://divorcematters.staging.wpengine.com/wp-content/uploads/2019/08/Screen-Shot-2019-08-29-at-10.25.09-AM.jpg
I haven’t gotten to the gforms issue yet but it could be because I have gforms nested inside another shortcode?
Forum: Plugins
In reply to: [Simple Custom CSS Plugin] CSS not showing up on secure pageI’m sure you’ve figured this out by now, but you might want to look in a browser dev console to see if you have assets that are being called via https:// instead of https://. If so, you’ll want to update all links to https:// with a DB find and replace plugin.
Forum: Fixing WordPress
In reply to: WP 4.5 broke Visual ComposerThanks Mark. Wish I knew this a while ago. haha.
Forum: Plugins
In reply to: People/ companies that can clean up hackshttps://sucuri.net/
I use them for free scanner. I’m sure they’re paid platform is good too but haven’t tried it.
If you use them, let us know how good they are as they’re pricy.