KC
Forum Replies Created
-
Thanks for your response. I did have a look into those transform rules and sadly they’re locked to the business tier (200 USD a month) so I’ve opted for AWS.
Forum: Plugins
In reply to: [Performance Lab] OG:Image shouldn’t be WEBPThanks for following up!
Interestingly, my WordPress is still keeping JPEGs even without that box ticked.
Forum: Plugins
In reply to: [Performance Lab] OG:Image shouldn’t be WEBPI’ve come up with a dirty solution – does the trick.
add_filter( 'wpseo_opengraph_image', 'change_opengraph_image_url' ); function change_opengraph_image_url( $url ) { return str_replace('-jpg.webp', '.jpg', $url); }
Disgusting behavior this. Means I’m having to migrate to another plugin without much notice and manually uploading new avatars.
Hope this results in a permaban.
Same
Forum: Plugins
In reply to: [Classic Editor] Classic Editor will not display text screenHi guys – had the same problem.
Could you take a look at your console (right click + inspect element then console tab) and see if the wp-tinymce.php is showing as 404? If it is, I’ll post the solution.
Forum: Plugins
In reply to: [AMP] Not a valid AMP pageShowing as Pass when I validate it: https://validator.ampproject.org/#url=http%3A%2F%2Fasuransimarine.net%2Ftokio-marine-bandung%2Famp%2F
Forum: Plugins
In reply to: [AMP] Featured Image Not Showing on Mobile/Google ViewIt looks as though it’s showing for me?
Forum: Plugins
In reply to: [AMP] Featured Images not showing in AMP 0.4.2.For your featured image problem, try adding this to your functions.php file.
/** * Template tag to show featured image on AMP * @param string $size the post thumbnail size */ function isa_amp_featured_img( $size = 'medium' ) { global $post; if ( has_post_thumbnail( $post->ID ) ) { $thumb_id = get_post_thumbnail_id( $post->ID ); $img = wp_get_attachment_image_src( $thumb_id, $size ); $img_src = $img[0]; $w = $img[1]; $h = $img[2]; $alt = get_post_meta($post->ID, '_wp_attachment_image_alt', true); if(empty($alt)) { $attachment = get_post( $thumb_id ); $alt = trim(strip_tags( $attachment->post_title ) ); } ?> <amp-img id="amp-feat-img" src="<?php echo esc_url( $img_src ); ?>" <?php if ( $img_srcset = wp_get_attachment_image_srcset( $thumb_id, $size ) ) { ?> srcset="<?php echo esc_attr( $img_srcset ); ?>" <?php } ?> alt="<?php echo esc_attr( $alt ); ?>" layout="responsive" width="<?php echo $w; ?>" height="<?php echo $h; ?>"> </amp-img> <?php } }