Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [thumbnails]

Automatically generated smallest size of an image.

0
votes
1answer
18 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
6 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
31 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 ...
0
votes
0answers
18 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
18 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
21 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
17 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
14 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
94 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
9 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
21 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
33 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
32 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
10 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
24 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
24 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
41 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
37 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
71 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
43 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
25 views

Single audio featured image

I'm trying to display to my single audio player its featured image (eg. as like it's cover-image). Something like in an audio playlist (that it's work as default) but in single audio player. How can ...
0
votes
0answers
856 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
88 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,...
0
votes
0answers
9 views

Wordpress crop specific image to thumbnails for specific size only

I want to think about the option to prevent wordpress to crop/resize all images that upload to the media. Instead I want to create this operation: Upload image (and don't crop to any size, only full ...
0
votes
0answers
55 views

Tag Thumbnail (featured image for tags/taxonomies)

Is it possible to attach an image from the media library to a tag and use it on the frontend. I'd like to have functions like for the post thumbnail. the_post_thumbnail(); has_post_thumbnail(); and ...
1
vote
1answer
240 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
1k 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 ...
0
votes
1answer
63 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
229 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
28 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
50 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 ...
0
votes
0answers
88 views

Sharpen imageconvolution for specific sizes

How can I add a sharpening filter (imageconvolution) to only some of the several sizes of images that WordPress generates (the "thumbnail" and perhaps also the "medium")? When WordPress generates the ...
0
votes
2answers
19 views

New portfolio items appearing smaller on the grid

For some reason that I cannot understand the new items that I'm adding to my portfolio are appearing smaller in the portfolio grid. I'm relatively new to this, so I'm completely lost. If it were ...
0
votes
2answers
28 views

Wordpress can't detect any thumbnails size?

Wordpress can't detect any thumbnails size, I re-generated all image but not work. The plugin (Simple Image Sizes) can detected all thumbnails size settings. But when I want to use, it can't detect ...
1
vote
1answer
408 views

If I Regenerate Thumbnails, would WordPress delete the existing Thumbnails and replace them with 'new copies'?

I am currently working on a website, which has 1,000's of Product Images. All of these images were uploaded, without being optimized accordingly. For instance, most of the Product Images were ...
1
vote
0answers
404 views

Change thumbnail image depending product category

Hello I would like to show my last product image as a thumbnail in specific category pages. I would like to keep my general shop page displaying the first image as thumbnail but show the last one ...
1
vote
0answers
231 views

Caption not showing with Woo commerce thumbnails

I am new with woo commerce and i have a task for single product page. I am editing woo commerce > templates > single product > product-thumbnails.php and trying to display caption with woo commerce ...
0
votes
1answer
91 views

Can we use featured image as third party website image URL

In my case we are getting some post list from third party and import in our custom post type. My question is, Is we can use post featured image as third party website image URL instead of upload ...
0
votes
1answer
22 views

how to nest specific category thumbnails inside different containers

im kinda new in wordpress and this is the problem im facing: I've created a custom div with 3 tabs that displays 3 inner containers, each tab is for a a specific "Category". For Example, let's call ...
0
votes
1answer
131 views

How to restrict wp generate attachment metadata() to certain intermediate image sizes

In Wordpress, we have added our own intermediate image sizes to the standard Wordpress sizes using add_image_size(). Using our own admin interface to upload images, we then use ...
0
votes
1answer
36 views

thumbnail crop not working

I've added the following code to my theme's functions.php file: function add_custom_sizes() { add_image_size('featured-thumbnail', 690, 500, true); add_image_size('secondary-thumbnail', 460, ...
0
votes
1answer
194 views

Does Wordpress have a way of changing the 'Natural' size of uploaded images?

So here's my problem: I have a site with several articles on the homepage, these are using the featured image as a thumbnail (roughly 250x250). Then, for a single article (single.php) I'm using the ...
2
votes
1answer
3k views

get_the_post_thumbnail_url with an unregistered size

The official code reference for get_the_post_thumbnail_url states: $size (string|array) (Optional) Registered image size to retrieve the source for or a flat array of height and width dimensions. ...
0
votes
0answers
19 views

Best way to manage theme images

I am currently wondering what is the best way to let the user choose between a certain number of thumbnail size for the shortcodes I am building. add_image_size function is the simplest way but ...
1
vote
1answer
35 views

Is there a way to avoid using add_image_size? Best way to manage images

Currently if you have a theme that use add_image_size for let say 6 different image size you will have 6 different thumbnail created that will maybe never be used. With the current version of ...
0
votes
2answers
974 views

How to use thumbnail size of image if I'm only using src to get image

I have a custom field for an image, and using it this way: <?php $item_img = get_sub_field('image'); ?> <img src="<?php echo $item_img ?>" /> But I want to use the thumbnail ...
0
votes
1answer
265 views

use css for resize image into mobile thumbnail

i use a wordpress plugin (Gmedia galleries) to create galleries, i have problem when i set Thumbnail Width Mobile and Thumbnail Height Mobile to 50 because the image is not centered into the Thumbnail ...