Stack Exchange Network

Stack Exchange network consists of 175 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 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
33 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
26 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
17 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
23 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
20 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
50 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
13 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
97 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
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
52 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
97 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
20 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
77 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
20 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
18 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
397 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
11 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
22 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
37 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
11 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
30 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
29 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
65 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
111 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
50 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
107 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
11 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 ...
1
vote
2answers
500 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
325 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
325 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
29 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
80 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
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
496 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
442 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
270 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
152 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
23 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
156 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 ...