Convert all images on S3 to webp format

You also need to update the database so that the converted images are referenced properly instead of the old ones. If you delete the old format images without updating the database, you will break the site as none of the old images will be found. The plugin “WebP express” will help with this, but I … Read more

How to disable featured image from inside of the blog post?

The Newspaper theme by tagDiv offers options to hide the featured image from single posts directly from its theme panel. Here’s how you can do it: From your WordPress Dashboard, go to the “Newspaper” -> “Theme Panel” option. Once you’re in the theme panel, navigate to the “Post Settings” tab. Here you will find an … Read more

‘apply_filters’ is breaking some shortcodes/HTML but not all

try this: function reload_article_content() { check_ajax_referer( ‘reload_article_nonce’, ‘security’ ); $post_id = intval( $_POST[‘post_id’] ); // only run on posts where ‘is-live’ custom field is set to ‘true’ if ( get_post_meta( $post_id, ‘is-live’, true ) === ‘true’ ) { $post = get_post( $post_id ); if ( $post ) { $GLOBALS[‘post’] = $post; setup_postdata( $post ); ob_start(); … Read more

Woocommerce Gallery Image Caption: Use “caption” — not “alt tag”. Keep alt tag as is

Phew! Here is the code for functions.php. add_filter( ‘woocommerce_single_product_image_thumbnail_html’, ‘change_alt_to_caption_gallery_images’, 10, 2 ); function change_alt_to_caption_gallery_images ( $wc_get_gallery_image_html, $image_id ){ $caption = get_post_field( ‘post_excerpt’, $image_id ); if ( !empty($caption) && !empty($wc_get_gallery_image_html) ) { $caption = str_replace( ‘”‘, “””, $caption ); $caption_repl=”data-caption=”” . $caption . ‘”‘; $wc_get_gallery_image_html = preg_replace( ‘/data-thumb-alt=”[^”]+”/’, $caption_repl, $wc_get_gallery_image_html ); } return $wc_get_gallery_image_html; }

techhipbettruvabetnorabahisbahis forumutaraftarium24eduedueduedueduseduseduedusedusedu