Questions tagged [thumbnails]

Automatically generated smallest size of an image.

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

Undesired down scroll after click in image thumbnail

I been trying to fix this witouth luck so far, when I click on the second image of my single product page of woocomerce the screens moves down and I have no idea why. If you go to https://www....
1
vote
0answers
40 views

Regenerate thumbnails unexpected resolution (96 x 96)

I'm using WP CLI wp media regenerate to resize my thumbnails. I've noticed something a bit weird. The original image I upload is a JPEG with a resolution (DPI) of 72. The images that are generated ...
1
vote
1answer
14 views

Does thumbnail regeneration edit the database?

I'm using the WP CLI command wp media regenerate to resize all of the images via the /wp-content/uploads directory. Are the new image dimensions registered in the database in any way or does the ...
0
votes
1answer
13 views

Why are thumbnails not being generated for PDF files?

I'm trying to figure out why one of my WordPress sites is not generating thumbnails for PDF uploads. It works on my dev and staging sites. When comparing them, the only difference that I can find is ...
0
votes
1answer
27 views

How do I get a smaller size of an avatar image

I have a function that creates a bio-line at the top of every post. One part gets the avatar of that user, that he uploaded in WordPress (I use a plugin so people don't need to use Gravatar for this). ...
0
votes
2answers
22 views

Thumbnail is showing outside its div instead of inside it

I'm echoing the post thumbnail here: echo '<div class="post-image right">' . the_post_thumbnail('featured-portrait-large') . '</div>'; And it works, but it's outputting the ...
0
votes
2answers
133 views

WP is showing wrong image dimensions

Several times over time I changed sizes of thumbnails WP generate when images are uploaded, always setting bigger size. Recently I set Thumbnail Width 600px width and Medium size Max Width 1800px. ...
0
votes
0answers
29 views

Why is the actual number of thumbnail images not matching what is store in an attachments metadata?

Occasionally my plugin needs to delete an image and its thumbnails images. However sometimes there is a discrepancy between the number of thumbnails an attachment has and the number of thumbnail files ...
0
votes
0answers
15 views

Apply manual image cropping not to thumbnail but medium_large size

When cropping an image in wordpress you can apply the changes to all image sizes at once, the thumbnail (150 x 150) or all sizes except thumbnail. I would like to be able to select other image sizes ...
0
votes
1answer
12 views

Custom thumbnail crop offsets

There are some WordPress plugins that allow custom crop offsets for specific thumbnails and images. I want to do this programmatically in a theme as it inserts thumbnails with very specific crop ...
0
votes
0answers
11 views

how to exclude images from scrset based on file size (kb)

when I upload optimized jpg images to Wordpress, I encounter the following problem: The original image file size is smaller than the auto-generated images (for the 1st and sometimes even the 2nd "...
0
votes
0answers
10 views

How to set the featured image / page thumbnail from php template?

I added a template php to my Wordpress site, showing a basketball image from url, I'd like this to be the thumbnail of my website when sharing on social media My php template- <?php /* *...
0
votes
1answer
30 views

Hide thumbnail on search results when thumbnail not set - using Oxygen

I am using Oxygen to build a search results page. I am very new to CSS and PHP editing. I just floated an image right for the first time. So please forgive my ignorance. I want to stop the thumbnail ...
0
votes
0answers
8 views

Store wordpress images by size folders, can't get the slug by size

I used the post explained here, I can not comment there as I don't have enough reputation, so I created a new topic. When using this code, i am well generating the thumbnails in subdirectories by ...
0
votes
1answer
30 views

Why Wordpress suddenly changed sizes of thumbnails?

I'm consistently using 3000x750 images for the standout images for my entries. I've recently added a new post with such image (I'm 100% sure about its size) and I've realized, that for some reason it ...
1
vote
1answer
36 views

Open Image Thumbnail in a new page, while clicking on the link

I am trying to open the thumbnail image on a new page using WordPress. For example. I have all the detail of a single post on a page and if someone clicks on the link given on a single page it opens ...
1
vote
1answer
70 views

How to get Gutenberg Gallery Block to output thumbnail images?

By default, the Gutenberg Gallery Block outputs full size images in 3 columns. This is excessive, especially on mobile, so I would like to set it in the theme or function file to output thumbnails. ...
0
votes
0answers
51 views

Images not showing after wordpres update 5.6

<img data-original="This image is never shown" src="This image is always visible" class="lazy img-responsive" alt="Alt"> After wordpress update lazy load ...
0
votes
0answers
9 views

How to show gallery in image attachment page?

And how to show all images from article/post at the bottom of this image page (plus NEXT, PREV button)?How to show gallery in image attachment page? Demo here
0
votes
0answers
17 views

Define image sizes in Woocommerce (current version 4.8.0) for Custom Theme

My images are blurry and after searching around, I understand that the image sizes are defined somewhere in WooCommerce (maybe here: /includes/class-woocommerce.php). I've also found this, relating to ...
0
votes
0answers
17 views

WordPress images & thumbnails not displaying (possibly caching)

I am having some problems with my websites displaying certain content, you can see for yourself at my site; https://uniqueteambuilding.com.au/. To summarise three errors occur; The activity thumbnail ...
0
votes
2answers
275 views

SVG not displaying in Media Tab in Backend

I addes this code to allow SVG Uploads to the Media Library of wordpress: function upload_svg ( $svg_mime ){ $svg_mime['svg'] = 'image/svg+xml'; return $svg_mime; } add_filter( 'upload_mimes', '...
0
votes
0answers
11 views

Display Multiple Photos as Featured Image when mouse moves on to it post

I need to add some photos (3 or 4 photos) to the post thumbnail (featured image) and should be displayed image 1, 2, 3 & 4 when mouse moves on to the post thumbnail...How can I do that. Please ...
0
votes
0answers
46 views

how to regenerate webp et-pb-portfolio-image

How to regenerate webp? I problem not generate format webp : et-pb-portfolio-image: 400×284 pixels <img width="1" height="1" src="https://www.test.com/wp-content/uploads/...
0
votes
1answer
16 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
180 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
1answer
58 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
13 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
1answer
30 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
17 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
195 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
35 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
29 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
1answer
89 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
86 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
47 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
25 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/...
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 ...
3
votes
1answer
229 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
47 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
1answer
73 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 ...
1
vote
1answer
513 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] => ...
3
votes
2answers
500 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
23 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
120 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
103 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
1answer
102 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
31 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 ...

1
2 3 4 5
8