Questions tagged [thumbnails]

Automatically generated smallest size of an image.

Filter by
Sorted by
Tagged with
-1
votes
0answers
8 views

How to fit second thumbnail on products page (woocommerce)

I've got a problem with the grid on woocommerce. I've got a crossfade between the first and the second images, they're both uncropped but the first is a rectangle and the second a square so my ...
0
votes
1answer
14 views

Search results thumbnails different size

Seems that according to the nature of my theme, whenever I do a search query and a result from my Projects section appears, the pictures appear huge and even break the footer! Whereas if I do a search ...
0
votes
0answers
14 views

Image srcset returns false for some images + Image Sizes missing from attachment

I have a weird issue going on in WordPress at the moment. Some images does not return any image sizes, and when using wp_get_attachment_image_srcset it simply returns false. I have no idea why this is ...
0
votes
0answers
7 views

How to preview original image size in GRID media mode not thumbnail size

Recently I have deleted all image size that WordPress created automatically excerpt original size that was uploaded to media. Now in the media grid, the image preview is not displayed (Grey colored ...
0
votes
1answer
17 views

How to use default image as featured image by implement some code in function.php

I want to use a default image as a featured image for all those Posts and Pages, where is not any selected featured image from media. I have tried this code in function.php but not working, function ...
0
votes
1answer
10 views

White image when I share my site

when I share the link to my WordPress, it shows a white image as the thumbnail. How do I alter this image?
0
votes
0answers
30 views

srcset shows original image url only

My website's post thumbnails shows urls as original url only, as shown in the next example: <img width="450" height="450" src="https://example.com/wp-content/uploads/2020/...
0
votes
1answer
19 views

How to change the format of thumbnails into wordpress theme?

dear community. I have question about changing the format of thumbnail into WordPress theme. I want to change all generated images format into a theme to *.webp. I already have generated *.webp images....
0
votes
0answers
15 views

Auto Generate Thumbnail

I wanna make soft corp of the thumbnail so that use the other plugins to that image corp. There is plugin I use , "Regenerate Thumbnail", after regenerating then there still old files exist. ...
1
vote
0answers
14 views

Thumbnails Not generated when sharing on WhatsApp

When I share my website link on WhatsApp, the thumbnail image is not generated in WhatsApp but the heading and content are generated. I cannot determine what is causing this. I have tried disabling ...
0
votes
0answers
20 views

Wordpress Multisite: Images moved to /sites/1?

I noticed that my older images are no longer getting resolved by Wordpress 5.3.4. - the file doesn't exist on that path and 404 gets returned. For images that were originally uploaded to https://www....
0
votes
1answer
11 views

How can i place square Feature Image withing the body of post aligned top left or top right in wordpress?

I want to place a featured image of my news website below the title inside the post aligned right or left top, right (as you see in any news webpage) now it is placed below the title, but it is big, ...
0
votes
0answers
26 views

Can't add thumbnail theme support

<?php function currentYear(){ return date('Y'); } function reisblog_thema_support(){ //Dynamische titel wordpress add_theme_support('title-tag'); // Thumbnail bij een post ...
0
votes
0answers
14 views

How to get absolute path with timthumb in wordpress

I am currently using timthumb.php with my wordpress. It is working fine for absolute path as well as relative path, But my issue is that TimThumb generate my thumbnails/ images with an relative path: ...
0
votes
0answers
7 views

Discoloured thumbnails on resize

When uploading images to Wordpress it is altering the colours dramatically of images. I have tried: using the compression default and 100% for JPEG within Wordpress. making sure the colour profile ...
0
votes
1answer
29 views

Remove curved edges from thumbnails in gallery (elementor)

Im using basic Elementor and it is automatically curving the edges on the thumbnail images in my gallery. I would like clean crisp edges, does anyone know how to do this. Here is the example on my ...
2
votes
1answer
66 views

How to make programmatic image upload generate thumbnail and sizes?

I have written a function to add a remotely-hosted image to the Media Library. It does so. However, it does not generate a thumbnail in the Media Library - and I believe standard practice should also ...
0
votes
0answers
22 views

Rebuild thumbnails via WP Cli - how?

I can use wp media regenerate to regenerate thumbnails. But I need to rebuild first, before I can regenerate. In the GUI of WordPress I have two buttons (if I have AJAX Regenerate Thumbnails plugin): ...
0
votes
0answers
17 views

display div tag only if post has thumbnail

I would like to display post thumbnail and excerpt side by side but even if post hasn't got a thumbnail its div still there to be seen. How could I disappear thumbnail's parent div? So far I've tried ...
0
votes
0answers
12 views

Image resize using WP_Image_Editor class V.S. using AWS Lambda

I'm using EC2 + S3 + ELB + CF. I would like to resize thumbnails before uploading to S3. In this case, 1) Resize image before uploading to S3(It uses EC2's memory using Wordpress native image ...
0
votes
0answers
23 views

unsharp thumbnails after uploading image

I googled for a whole day and didn't found a solution. I tried a lot of plug ins and so on, but didn't get it. If I upload for example that image here: https://deermylove.com/wp-content/uploads/...
0
votes
0answers
193 views

Thumbnail regeneration is not working

Thumbnail regeneration is running in the background. Depending on the amount of images in your store this may take a while. I get this message for a month now is clearly not working I think. I ...
0
votes
0answers
20 views

Blurry Images After Regenerating Thumbnails

I have a blog archive layout with featured images. The images are blurry. The images are sized using a custom image size that I added. The images displayed are the correct size. I've also run wp cli ...
1
vote
0answers
22 views

How to stop thumbnail generation from some images and different size thumbnail generate

I have 4 Post Type, and each Post Type has images with different size. Is it possible to choose not to create thumbnail images when uploading an image or to create specific images size for each post ...
2
votes
1answer
95 views

Completly disable and remove Thumbnails?

This is my first question, so forgive me if it's not perfect 😅 I am asking, if there is a way, to completely disable and remove the thumbnail functionality from WordPress. (I am using an image CDN ...
1
vote
0answers
22 views

Update old Post image metadata to 'thumbnail' wp_attached_file

I am updating a very old WP-based website that was created prior to WP use of "featured images" aka thumbnails and the name of all post images are contained in a custom meta-field called "Image" (...
0
votes
0answers
44 views

Delete original images after resize

I've read previous questions about the argument but, it seems no one perfectly fits with my goal. I've noticed that, after uploading an image, Wordpress, correctly, creates all the thumbnail needed. ...
0
votes
1answer
22 views

Add custom version to an image

I have scoured the web for plugins and articles to help me solve something that seems pretty basic, but couldn't find anything. I want a way to create custom versions, particularly sizes, of an image ...
0
votes
0answers
23 views

can i use specific images for thumbnails in post?

How do I use get_post_thumbnail_id for specific posts? I want to manually create a field with the ACF plugin and add it to the image post and replace "get_post_thumbnail_id". <?php if ( $the_query-...
1
vote
1answer
333 views

Disable wordpress image sizes generation

I'm trying to disable image sizes generation in wordpress. When I use: print_r( get_intermediate_image_sizes() ); it shows: Array ( [0] => thumbnail [1] => medium [2] => ...
0
votes
0answers
18 views

Why does my site download two different versions of the same image?

On both my homepage I have a masonry layout with thumbnails. These are lazy-loaded by JetPack. I noticed that for every thumbnail, two images are being loaded. One with a request url of https://i2.wp....
3
votes
2answers
230 views

retrieve thumbnail from post ID of best selling product in category

The code below displays product category names, links and their thumbnails on hover. The thumbnails ($image) retrieved are those manually set via the woocommerce product category menu. I am trying ...
1
vote
1answer
21 views

hover image appears below placeholder instead of overlayed

I used padding-bottom calc to stop my text jumping around while the placeholder loaded. This worked, however the hover image which is supposed to display over the top of the placeholder, now appears ...
1
vote
1answer
113 views

combine Code 1 with Code 2

Code 1 - uses wp_list_categories to list product categories in columns of x categories up to a total of y, with a link to view all categories if there are more than y. Code 2 - Later realising i ...
0
votes
1answer
85 views

get taxonomy thumbnail and use it as a variable in code

Im having trouble trying to retrieve category thumbnails and use as a variable in some code i got from a JSFiddle. It puts a placeholder image as default and displays a category image on hover of ...
0
votes
0answers
35 views

How to pass a YouTube thumbnail URL through the a custom image size

I'm currently displaying YouTube thumbnails directly from YouTube using this format which works: <img src="http://img.youtube.com/vi/<?php echo youtube_id; ?>/maxresdefault.jpg" /> ...
0
votes
0answers
100 views

wp-cli wp media regenerate --only missing deletes unused sizes?

I just ran wp media regenerate throught 200k images... thing is I have 400k, and the range command is not working (200000 400000 | xargs ***) If I use wp media regenerate --only missing will it ...
0
votes
1answer
40 views

Disable globally “Crop thumbnail to exact dimensions (normally thumbnails are proportional)” with Multisite

I would like to disable the "Crop thumbnail to exact dimensions (normally thumbnails are proportional)" function for all blogs in my WordPress Multisite setup. This function is available in Dashboard,...
0
votes
0answers
28 views

Cannot display wordpress thumbnail

I wrote a simple Wordpress Plugin that upload all images inside a folder located on another server. The uploading process is working well, but for some reason when I go inside Library I have a blank ...
0
votes
0answers
29 views

ADD class to all my images (thumbail)

I have a xxx web like xvideos for example. And I want to add a class to my thumbail images because I want to indicate that the pop up add only will active when they click in these images. So, i have ...
0
votes
1answer
180 views

Custom Post type slider with thumbnail navigation

I am trying to make a slider for a custom post type with quite a few custom fields. Ive got the query and fields displaying fine. But now to get it into a slider Getting each post in the loop ...
0
votes
2answers
175 views

Stop WordPress compressing images? – Quality is terrible

I understand WordPress creates smaller versions of the original image file. These versions are blurry in comparison to the original which is a big issue as a photographer. I set up this page you can ...
1
vote
1answer
28 views

How to stop wordpress always displaying full-res images

Currently, my website is over 56mb just on the home page... I have 5 images, it's far too large and is killing the speed. Is there a way to make my site only display thumbnails or is this always ...
0
votes
0answers
33 views

Error 500 in loop to create posts and thumbnails

I'm using this loop to read a folder, and create a custom post with the basename info. But, around 20 images, the response is a error 500 and the process stops. I'm looking for some tip to do this ...
0
votes
0answers
48 views

When upload a PNG a noise appears in the thumbnails

Since we updated wordpress something strange has happened. We have a woocommerce where products have different color options for each part of this, and when you select a color, the image with that ...
1
vote
1answer
86 views

Overriding of the template for the Attachment “thumbnails” in the Media Grid isn't working

I'm trying to customize the template of the Media Browser (when clicking on "Add Media" button within Edit Post page), by adding a caption with the filename on each thumbnail so I don't need to select ...
0
votes
1answer
207 views

Show Post Thumbnail In Custom Post From Other CPT

I have a 'Match' CPT to create posts for each game played by a football team. These posts display details of the opposition team by pulling through information from the appropriate post from another ...
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
90 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
vote
1answer
31 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 ...

1
2 3 4 5
8