New answers tagged

0

what is the question? if is to custom your code on the product category page the files to override are archive-product.php and content-product.php, if is to override the single product page is on content-single-product.php possibly the gallery will be there coded. if so, the files should be copied to your theme.


0

You can add a filter using add_filter() hook for wp_generate_attachment_metadata to teach Wordpress to resize animated gif images correctly: /** * Filters the generated attachment meta data. * @param array $metadata An array of attachment meta data. * @param int $attachment_id Current attachment ID. * @param string $context Additional context. Can be '...


0

I would try to use the ID of the post (which should be part of the id or class of the article-tag) as additional selector for the style: <style> #post-<?php the_ID();?>.has-post-thumbnail { background-image: url('<?php echo $featured_img_url ?>'); background-size: 100% 100%; } </style>


0

There's a plugin called EWWW Image Optimizer. When compressing animated GIFs and creating the thumbnails will retain the animation. Proof: Original Image. The animated 150x150 thumbnail.


Top 50 recent answers are included