Questions tagged [thumbnails]

Automatically generated smallest size of an image.

0
votes
0answers
11 views

srcset for images does not work

I have a web store and I recently updated the theme of the site, when I see the images of the store were not displayed, inspecting in the browser console I realized that the image in "src" was correct,...
0
votes
0answers
20 views

How to view exact image dimensions of a media in Admin view?

I know programmatically we can see the attachment sizes in templates, but I'm looking for a way to see the precise dimensions of the resized medium, large, xlarge sizes too. No plugin seems to do this,...
0
votes
1answer
8 views

Thumbnails are hard cropped not matter what

I'm using WP Job Manager, and would like user-uploaded logos to be resized and positioned to fit within a fixed height and width. Currently, my settings are at: When I am uploading the following ...
-1
votes
0answers
21 views

Weird moire / stripes / pattern in PNG alpha channel / transparant - only on uploaded and resized png images, not in original uploaded ones

I uses the default upload script / media library from Wordpress (and Woo). But the resized images show weird pixels in the transparant part of the PNG. This images below is a transparant png; (also ...
1
vote
1answer
22 views

How check that there is post thumbnail feature image or not on wordpress?

On my wordpress site , I have some post that all of them have post thumbnail, but their post thumbnail removed from host and now when i want to load them on site , there is no image for loading to ...
0
votes
0answers
39 views

Thumbnails regenerate wp_generate_attachment_metadata

I'm importin pictures via FTP and create custom recorss in mySQL via insert. I'm trying to make a cron job to regenerate thumbnails. This is what i came up to.. but i doesnt work. add_action( '...
0
votes
1answer
14 views

Wp-query and column blocks

Maybe this is asking too much, but the new blocks give a simple way to add columns that work well responsively. ie you can just drop image thumbs into column blocks and they work perfectly on mobile ...
0
votes
0answers
14 views

Featured image size always cropped bottom

Good day! I am trying to add a featured image to my post but every time I add a featured image, the lower part gets cut off. Original size is 300x300 pixels. If the windows size gets changed, ...
1
vote
1answer
10 views

Media Gallery Upload Thumbnail Compression is Changing Image Hue

When I upload an image to my media gallery, all the image sizes that are generated are discolored. Here's an example. This is the full-size image: And now here is one of the smaller image sizes: ...
0
votes
1answer
19 views

how to post default thumbnail if post not created yet

I want to show a default thumbnail if a custom post not created yet. Here is my loop: <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?> <?php if ( ...
0
votes
1answer
154 views

get_the_post_thumbnail_url('full') returns empty from custom post type

I'm trying to display the full size image of the single post from a custom post type that I created, below is what I've tried <?php $args = array( 'post_type' => 'press', 'order' ...
0
votes
1answer
56 views

Clickable product image with hover effect

I have a theme with woocommerce. Some products have more than one photo, and when user hovers over such products, those photos (that are in the photo gallery) will rollover. I want to make the ...
0
votes
0answers
16 views

Post Thumbnail: Is there a possibility to add a description to the meta box? [duplicate]

Probably many of you are using the Post Thumbnail feature: https://codex.wordpress.org/Post_Thumbnails I wonder if it is possible to add a description to the post thumbnail meta box in the admin area....
0
votes
0answers
37 views

Can the WooCommerce image sizes be removed?

Is it safe to remove_image_size() on WooCommerce's built-in image sizes (woocommerce_thumbnail, woocommerce_single, woocommerce_gallery_thumbnail, shop_catalog, shop_single, shop_thumbnail)? I'd like ...
0
votes
1answer
61 views

Thumbnail images missing in WP media library

I have built my own WordPress theme and applied it to my WordPress website. The issue I am having is out of the blue, the thumbnail images from the media gallery have stopped loading in and now just ...
1
vote
1answer
24 views

Get thumbnail url of custom meta image?

I have a line in my child theme as follows: $bg_image = wp_get_attachment_url( get_post_meta(get_the_ID(), 'bg_image', true) ); It successfully provides me with the url of the image stored in the ...
0
votes
0answers
78 views

Force WordPress to strip/remove EXIF/IPTC metadata when resizing thumbnails

I am using Imagick with WP 5.0.3. Since version 4.5 WordPress use Imagick to create/resize thumbnails and it keeps EXIF/IPTC metadata (using GD, metadata are removed). WordPress keep EXIF/IPTC ...
0
votes
1answer
16 views

I cannot upload images to post or the media library in wordpress

Whenever I try to upload featured image for a new post or edit featured image of the older post, the following errors comes up: An error occurred in the upload. Please try again later. Here I have ...
0
votes
1answer
201 views

Change WooCommerce Image Size in One Product CAtegory

I have one Product Category that needs to have 300 x 300px uncropped thumbnail images. All of the other products have 300 x 300px, cropped thumbnails. This would be on the Shop page and the Category ...
0
votes
2answers
24 views

How to reduce unnecessary thumbnail creation?

On a site that has many different image sizes each time an image is uploaded all the different thumbnail sizes are created causing a fair bit of bloat. What would be the best way of optimising this ...
0
votes
1answer
7 views

Get thumbnails with array sizes parameter

I am trying to get both full and thumbnail images from post with wp_get_attachment_image_url: wp_get_attachment_image_url( get_the_ID(), array('thumbnail, full')); I know that by default size is ...
0
votes
4answers
69 views

How can I server scaled images?

I am working on an eCommerce website, with WooCommerce powering the shopping side of things. The website has a 'Recent Reviews' Widget, within the Footer. As well as the Review itself, it also ...
1
vote
0answers
136 views

Remove product category placeholder image (Woocomerce)

I'm trying to get rid of placeholder product category images on the shop page. Right now I'm using this code to add a .no-image class to products that don't have an image so I can style them ...
0
votes
1answer
23 views

RSS feed site image custom resolution

I want to update the resolution of my site image for my RSS feed. Right now it is 32px. How can I update the resolution without plugins? <image> <url>https://evenwerk.com/wp-content/...
0
votes
0answers
95 views

Woocommerce shows product images in the wrong size

All products in my website have 200x200 featured images. But in catalog images are shown in 750x750 (sooo blurry) instead of 200x200. Source code of catalog page: <img width="200" height="200" src=...
0
votes
1answer
6 views

I want to use a product thumbnail completely different than the product image

I want to use a product thumbnail completely different than the product image. I've tried to search on google but all solutions lead to just customization of thumbnail sizes.
0
votes
0answers
21 views

How to filter on placeholder image

I'm using the woocommerce-auto-category-thumbnails plugin to replace a blank category thumbnail with a random thumbnail from one of the products in the category (or child categories). It is supposed ...
0
votes
1answer
19 views

How to set featured image as background for a specific category?

I am currently trying to set the most recent post's featured image to be the background of my hero image. This is the code I'm using: <?php $backgroundImg = wp_get_attachment_image_src( ...
0
votes
1answer
661 views

How to change product thumbnail size in storefront theme

I was trying to display product thumbnails in 230px (as per recommendations by GTmetrix). Since, I am using storefront the default value is declared in storefront/inc/class-storefront.php The code ...
0
votes
0answers
12 views

How generate thumbnails with background job

We have a situation, there are 40 images size registered, thumbnails are being generated as soon as the image is uploaded. This is causing a delay for 30-40 seconds on uploading+thumb-nailing. What ...
0
votes
0answers
23 views

Storing video thumbnails

I need help. When I add new post with video I want to download the thumbnail of the video to wp-content/upload. I tried using wp_handle_upload() function but i am not sure if it is correct and i am ...
0
votes
0answers
36 views

Why image Thumbnail url is not displaying with custom size?

The website has only one thumbnail size 375x211. I want to show this size thumbnail image at site homepage so that when I copy this image it only copies in 375x211 size, not in full image size which ...
2
votes
1answer
39 views

How to link to YouTube videos with thumbnails?

I am brand new to WordPress and find it very confusing. I have a small blog and cannot find a way to easily add a small grid of YouTube thumbnails that link to those videos. I have looked at all ...
1
vote
0answers
12 views

Thumbnail position + size

Good afternoon, I'm currently having a home page with a header and a footer. I would like to show the last posts there with a thumbnail plus an excerpt under it. The thing here is that I want to ...
1
vote
0answers
14 views

Why are some thumbnails on their side - but correct when I go to edit image? [closed]

Some thumbnails are on their side- when I go to edit the image the picture is correct and if I try to rotate it will not
2
votes
0answers
39 views

Save image as featured image

I am using WordPress 4.9.7 and I am trying to develop a plugin that downloads an image from a website and saves it in the media library and sets it as featured image on a post. Find below my full ...
0
votes
0answers
30 views

How can i auto generate thumbnail Image for Video in WordPress

I want to auto generate thumb of the video which is in media of WordPress. What I want is when I press publish button then it is set as a featured image of the post. Any idea how can I to do this?
0
votes
0answers
42 views

Delay WordPress auto thumbnails generation for specific image size i.e. 'medium'

I am trying to delay WordPress auto thumbnail generation for specific image size only i.e. 'medium'. As I am using GD library to print Post Title on the image automatically, and it replaces the ...
0
votes
0answers
87 views

How to tell woocommerce slider to use thumbnails

I am using the most recent wp and woocommerce. I have a carousel slider on my frontpage which is listing my featured products. In order to decrease the loading time, the carousel should render "...
0
votes
1answer
151 views

add product thumbnail to checkout page only and include variation name

I want to add the product thumbnail to the review order area of the checkout page in a custom plugin. I want to restrict the apply_filter function so that it only applies to the checkout page, but no ...
1
vote
1answer
51 views

How do get post thumbnail into plugin?

I want to get post thumbnail into kk Star Ratings. I use this code: <img src="<?php the_post_thumbnail_url(); ?>" />'; But it not working. I inserted to index.php file, as: <!-- kksr-...
0
votes
0answers
1k views

Blank image thumbnails in media library

I copied one website to other domain. i am using avada theme in my new domain all images show as blank thumbnails in admin but in website all images are show i checked permission of all folder and ...
0
votes
2answers
125 views

How to disable post-thumbnail from generation?

In my theme there is a set of add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 470, 680 ); which is actually generating one more image besides the default small,medium,medium-large,...
1
vote
3answers
655 views

Image Quality Thumbnail Compression in Wordpress?

I’m lost I don’t know where to turn. I am trying to get my thumbnails to NOT be compressed at all. My uploads are nice and colorful, but the thumbnails gets very visibly duller and poorer quality. I ...
0
votes
1answer
2k views

Pictures won't display in media library and also won't show preview when selected

I have done the plug in, check permissions (upload folder which contains files for the media contents is 755), clearing cache (there was none, apparently), disable any extra plug-ins, check and ...
1
vote
1answer
487 views

Featured Images does not show in custom post type

I have the following custom post-type: <?php function university_post_types() { // Professor Post Type register_post_type('professor', array( 'supports' => array('title', 'editor', '...
1
vote
1answer
354 views

how to link post-thumbnail to original img in a lightbox?

I have a page showing custom post type, but I don't know how to link to the full size image that can be opened by a lightbox plugin. the post page is like: <div class="content" id="main-content"...
0
votes
1answer
30 views

In the admin, how can you list thumbnails instead of titles for a custom post type?

I'm using Custom Post Types UI and Advanced Custom Fields Pro to create a 'Portfolio Images' post type. The custom fields include Image as well as some others. When clicking on 'All Portfolio Images' ...
0
votes
1answer
26 views

'Post-thumbnails' feature does not seem to register

We are trying to change the crop style of the thumbnails attached to the posts on our website. This is the code we have used to declare a new image-size: <?php /** --- Thumbnails configuration **/...
-1
votes
1answer
100 views

What is the best way to change share image for social networks? [closed]

I'm totally new to WordPress. I'm trying to change images for sharing my post in social networks. It kind of worked ok for Facebook and Twitter through Yoast SEO plugin (screenshot attached 1), but it ...