Questions tagged [images]

Images are used in different ways by WordPress.You can use a theme with images in layout, place images within your post/page content, display images next to visitor's name called avatars etc

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

Media Library Issues

(All plugins disabled) I have some strange issues with the media library. It's an old site that I have been managing for the last 2 years. The site has dated media folders on disk going back to /2010/...
essexboyracer's user avatar
0 votes
0 answers
14 views

How to remove https://pixel.wp.com/t.gif g.gif from loading when use plugin WooCommerce [closed]

Everytime i active plugin WooCommerce. It will slow down website, i debug it and it show 2 link is reason. https://pixel.wp.com/t.gif?completed_tasks=2&total_tasks=5&_via_ua=Mozilla... https://...
John Horn's user avatar
0 votes
1 answer
25 views

How to add year and month path to old attachment images?

I was using only uploads folder for attachment images. After a while, I started using also Year and Month folder. But I did realize something today. And that is, new uploads works perfectly but old ...
Aslan's user avatar
  • 13
0 votes
0 answers
19 views

For Gutenberg block editor, how do I use media query to add a smaller size of a background image to display on the mobile version of a site [closed]

On a page with different background images in different sections. I uploaded a smaller size of one of the background images to media, then in ‘additional css class’, I added a class(bgmobile) to the ...
Heavenlie's user avatar
1 vote
0 answers
22 views

Why WordPress convert my webP images into JPG?

ENVIRONMENT: WP Version 6.4.1 When I want to upload a webp image in my woocommerce product, WordPress converts my webP image into JPG. So I deactivated all the plugins and tried to upload my webP from ...
Gauthier Buttez's user avatar
0 votes
0 answers
9 views

how to display the actual size of the picture in post

I'm a beginner WordPress user and I have an issue on my site, the pictures in a post that I'm adding are displayed not in the actual size, but adjusted to the max page width. Attaching the picture as ...
naciass's user avatar
0 votes
0 answers
11 views

Wordpress portfolio posts: media not displaying if several images

A friend in need asked me to fix his wordpress website; I am new to it. The website is quite old. He used portfolio posts; it displays just fine when there is only one image selected, but there is a ...
ClickityCluck's user avatar
0 votes
0 answers
15 views

Photo is not showing properly

I have created a banner after the header which is working fine on desktop view but now on phone view. Here is the example: here is the example of phone view: as you can see in the images, photo is ...
Anna Martin's user avatar
0 votes
0 answers
23 views

How can I scan my entire site for every image to know each image's size and dimensions and url?

A client wants to know the size and dimensions of every image on their wordpress site and where they are located (URL). I'm a jr developer tasked with this and I truly have no idea where to start. I ...
MJC's user avatar
  • 1
0 votes
0 answers
16 views

How to force Cover block to use the full size image resolution

Is there anyway to force Cover block to use the full size image resolution? It changes it based on the screen dimension and some times it gets so blurry which is awful! Should I write some lines of ...
Poorya Ghorbani's user avatar
1 vote
1 answer
37 views

Image editing no longer works after moving to a new server

I moved to a new EC2 server (Linux 2) and have installed everything I thought was needed. However, now when I login to the back end of my Wordpress sites, I am no longer able to "edit" (crop,...
Lee Fuller's user avatar
0 votes
1 answer
31 views

Customize all image captions

Is there anyway to add smth like a SVG to all image captions of my website? Smth like the camera logo under this photo.
Poorya Ghorbani's user avatar
0 votes
0 answers
8 views

Images in an RSS feed

I'm using Advanded Custom Fields on my WP site to sent text and images to an RSS feed. The RSS feed is used in digital signage software. I have tried to sent more than one image to the feed, using the ...
Erik's user avatar
  • 1
0 votes
1 answer
10 views

How do I get my image for my product to not be blurry

I use the plugin for woocommerce - Extra Product Options & Add-Ons for WooCommerce by ThemeComplete. And I have these images used in the extra product options. They are blurry. When you have ...
Leo Biehl's user avatar
0 votes
0 answers
31 views

Images stored from external API not loading

The following is my code I am using to store image that I am getting from an external API using my own plugin. The images, or any media in general, are not loading on the frontend or the Media tab on ...
I. Antonov's user avatar
0 votes
1 answer
18 views

css and images in uploaddir, different response in different browsers

I have some pages to demonstrate how to include and use some code. Therefore I load js, css and images with sftp to a directory in /wp-content/uploads/ and describe how to use it. Now I would like to ...
pehu's user avatar
  • 11
2 votes
0 answers
63 views

How do I display a PDF thumbnail as a link to the PDF without uploading the image

When I found a couple of years ago that WordPress will create thumbnails of uploaded PDFs, I was so happy, thinking I wouldn't have to make and upload separate PDF cover images to have a thumbnail ...
bkepl's user avatar
  • 21
0 votes
0 answers
86 views

warning: trying to access array offset on value of type bool ACF field image group

I have a problem with an acf function for displaying an image by array. I can get my image to work well when I upload it to the field associated with it. On the other hand, when I don't put an image, ...
Thica's user avatar
  • 15
1 vote
1 answer
40 views

How do you detect when an image has been deleted from WordPress media library?

I want to detect when the user click "Delete permanently" in media library so that I can use the post ID of said image to remove the image from my plugin. I have the below code, but it's not ...
www.matemingler.com's user avatar
0 votes
1 answer
13 views

Control the srcset, image size for get_the_post_thumbnail

I have the standard image sizes for thumbnails. I want to download 'medium' for mobile screens and 'large' for others. No matter what, the srcset settings download the 724px wide, large size to mobile ...
Joe Barrett's user avatar
0 votes
1 answer
28 views

Image size not showing up in 'wp/v2/media'

I'm trying to get the URL of a specific image size, and I'm using apiFetch: const response = await apiFetch({ path: `wp/v2/media/${id}`, method: "GET", }); The ...
Vincent's user avatar
0 votes
0 answers
27 views

How to add a shortcode for an image in the following function

This is a function by Tobias Keller for PRG Pattern Link Masking where title shortcode is link text. How то add image shortcode alternatively instead text ? $use_prg = new prg_pattern(); class ...
arteaster's user avatar
0 votes
1 answer
26 views

Replace image with its alt text?

I have a WordPress post with lots of inline HTML images. I want to output my HTML in such a way that the existing: <p>Here's my cat: <img src="example.jpg" alt="A photo of ...
Terence Eden's user avatar
0 votes
0 answers
18 views

How can I make the hero image full width, while keeping the contents below it contained, without the scroll bar appearing when viewing it?

I'm trying to make the hero image full-width so I chose full-width on the block alignment tab. I'm trying to keep the contents below it contained, so I chose "contained" for the page setting....
Raven's user avatar
  • 1
0 votes
0 answers
18 views

Thumbnail appearing small, not reflecting what is set in elementor

I have a strange issue that is occurring on my site and after plenty of googling I have not been able to find the answer hence my post here. The first screenshot is when I go to edit the page within ...
karnage's user avatar
0 votes
0 answers
23 views

How to add images inside an item of a list in Gutenberg

I'm about to move to WordPress (from markdown), and I noticed that the Gutenberg editor won't allow the use of images within list items. It kind of does with the "inline image" feature, but ...
Alvaro's user avatar
  • 121
0 votes
0 answers
8 views

How to upload multiple images to use as gallery in Kirki Framework

I am using Kirki Option framework which works like charm in most cases, I recently shifted from Redux framework. I have a section in my website for the gallery, I want to upload multiple images using ...
Milan Bastola's user avatar
0 votes
2 answers
100 views

How to load only a certain type of image (functions.php)

Can only images of a certain type be loaded from the media library in the customization panel? eg: png. I tried some types but it didn't work. $wp_customize->add_setting( 'themeslug_logo', array( ...
Josef Volný's user avatar
0 votes
0 answers
13 views

How to make an image appear then another takes its place and so on?

i would like to reproduce the same effect than this website's homepage has (https://studioswine.com/), which consists of an image appearing randomly in the space for a very short time, then disappears ...
meeyyer's user avatar
0 votes
2 answers
20 views

Images Not Displaying On Page or Media Gallery After Multisite Migration

I recently migrated a WP Multisite (600+ subsites). All of the images are in the correct folders, but just get broken images, file not found, etc. I have tried: Regenerating Thumbnails via plugin ...
Eric Niemiller's user avatar
0 votes
0 answers
17 views

Certain images loading from /wp-admin/ which our server is blocking, resulting in a 403

Some images are being blocked by our WAF (see hidden information) because the website is attemping to load them through /wp-admin/ - "wp-admin/admin-ajax.php?action=kernel&p=image&src=&...
Sonia Rovira's user avatar
0 votes
0 answers
9 views

Remove tab on product for one category, keep but change image for another

On our WooCommerce WordPress product page, I was able to remove the 'Additional Information; tab with the following code: add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); ...
Spacejams's user avatar
0 votes
0 answers
35 views

Image permalink interfering with category url

I'm trying to fix an issue on a client's site. The permalink for an image is site.com/Resources while a category is site.com/resources -- I've deleted and reuploaded the image to change the permalink, ...
csampson42's user avatar
0 votes
0 answers
84 views

Plugin in still active even though it's been deactivated and deleted

I am testing out a no-right click plugin https://wordpress.org/plugins/wp-content-copy-protector/ But I didn't like the look of it, so deactivated it and deleted but it still shows up on the website, ...
user234850's user avatar
0 votes
0 answers
29 views

How to disable hover zoom on woocommerce. None of the common methods work

I have tried these codes in child functions and style files. Nothing works. add_action( 'wp', 'divikingdom_disable_wc_zoom', 99 ); function divikingdom_disable_wc_zoom() { remove_theme_support( '...
Raj Arjit's user avatar
  • 103
-2 votes
1 answer
156 views

Convert all images on S3 to webp format

I need to convert all my wordpress images hosted on S3 to webp format. I need to figure out some way to do it without breaking my site. If I download all the images and convert them to webp and ...
Abdul Basit's user avatar
0 votes
1 answer
28 views

HELP PLEASE PHP slider css

I converted a html file to php to upload in a hosting site. However, I have this slider that already came with the template I used. The background image doesn´t show in php, but it does in html. This ...
Karyme's user avatar
  • 1
1 vote
1 answer
74 views

wp_get_attachment_image with custom size not rendering possible 2x srcset image

I'm noticing a difference (bug?) in how WP is rendering srcset images now. If I register my image sizes with add_image_size('single_featured_image', 1280, 9999, false); add_image_size('...
James0r's user avatar
  • 91
0 votes
0 answers
42 views

How to add image in wordpress custom plugin?

I am looking for how to add images in a custom database table using WordPress code I am new in WordPress plugin development. I've created code for a plugin named store plugin. I've taken fields like ...
Khushbu Joshi's user avatar
0 votes
1 answer
57 views

Restricting Image Upload Sizes using 'wp_handle_upload_prefilter' - Stuck media progress bar when Featured Image?

I have grabbed this function and adjusted it to my needs. add_filter( 'wp_handle_upload_prefilter', 'check_image_dimensions_during_upload' ); function check_image_dimensions_during_upload( $file ){ ...
dekkyd's user avatar
  • 5
-1 votes
1 answer
199 views

How to disable featured image from inside of the blog post?

I am using Newspaper theme and what I want is to hide featured image inside blog post but to show on homepage. Can anyone get me solution to my query?
SUNIL JOSHI's user avatar
0 votes
0 answers
15 views

wordpress is stripping double prime (quote marks) from image title

When uploading images with a title like TestTwo Towers 2018 • 34"h x 8.5"w x 11"d.jpg, I end up with TestTwo Towers 2018 • 34h x 8.5w x 11d. Then file url to this image is /wp-content/...
plushjudy's user avatar
0 votes
1 answer
64 views

Get field added via attachment_fields_to_edit filter in Gutenberg

In a plugin I'm building, I've added a field named attribution to attachments via the attachment_fields_to_edit filter. I'm trying to get this info in the block editor but when I output the variable ...
leemon's user avatar
  • 1,806
0 votes
1 answer
62 views

Adding or replacing image size

I have a lot posts converted from classic editor to block editor and in the process, some image blocks (or all) have missing sizeSlug attribute, which editor interpretes as thumbnail size. However, I ...
Lovor's user avatar
  • 881
0 votes
0 answers
35 views

Images are not being displayed in wordpress

I am trying to upload a .webp image and the image is not rendering in wordpress. I can see the element in the code but it is not rendering in the site.
Rohan's user avatar
  • 1
0 votes
0 answers
74 views

Images not serving (for sites that use a subdomain)

I am using docker-compose to host 5 wordpress sites on a vps vm (ubuntu). My site hosts and shows images just fine, but the other 4 (my kids) can’t serve images. Each site has it's own public_html ...
bonhoffer's user avatar
  • 103
0 votes
0 answers
22 views

Images auto deleted after exactly nine months... or my visit triggered some kind of heart attack?

So I looked at my website and noticed that some of the images had disappeared. It was fine yesterday. The images that were deleted were from when I first set it up (so the files in the media library ...
Slashee the Cow's user avatar
0 votes
0 answers
18 views

How can I get or the intermediate size of an image with wp_get_attachment_image_src without using post meta?

I'd like to get the name of an intermediate file based on it's original attachment without relying on its post meta. As the registered image sizes e.g. thumbnail have been unregistered, the post meta ...
Motivated's user avatar
  • 205
0 votes
1 answer
34 views

Is there a way to return a list of the default image size names when they are unset?

With intermediate_image_sizes, there's the option to unset default image sizes e.g. thumbnail, medium and so on. Using get_intermediate_image_sizes() returns the remaining list of image sizes which ...
Motivated's user avatar
  • 205
0 votes
0 answers
9 views

How to add more images horizontally to existing gallery using elemontor

I deleted all my unattached images from media as I had so many copies not being used and now I'm missing all my images in my gallery. The grid is already there so it should only be to upload add the ...
Johanna's user avatar

1
2 3 4 5
72