Skip to main content

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
16 views

Multiple image selected -> only first added

wordpress 6.5.4 I select multiple images from the native media viewer but only the first is added every time. This seems to be new after update to 6.5.4. Not sure how to fix this ?
jotyhista's user avatar
0 votes
1 answer
16 views

CSS how to target the caption of one individual image?

I can use .wp-element-caption to change all site captions at once, but I want to target one specific caption at a time. Because I'm adding additional CSS to a premade WP theme, I can't find a way to ...
sam's user avatar
  • 1
0 votes
1 answer
27 views

Define how an attached image is rendered

When inserting an image block to a post, I want to control how the image is actually insterted in HTML. Specifically, I want to replace the autogenerated img element with a picture one, in order to ...
dgnin's user avatar
  • 143
0 votes
0 answers
17 views

Images being uploaded via WP Media are not attached even they are used by some CPT posts

I would like to delete thousands of images on my WP websites which are no longer used by some CTP posts which have been removed even from Trash folder. However, I found out that Images being uploaded ...
James Black's user avatar
0 votes
0 answers
17 views

Convert all img tags into amp-img in wordpress content area

i have this code for our custom amp page in wordpress this code remove our all images in content area but i want these images show as a amp images $content = get_the_content(); $content = preg_replace(...
SS Apps's user avatar
0 votes
1 answer
27 views

All Wordpress Website Images Broken

Today my website is showing every image as a broken link. Checking the Media Library every link is broken, tried uploading new image files today they are also broken. Checking my hosting File Manager ...
LP2024's user avatar
  • 1
0 votes
1 answer
12 views

After importing using wordpress importer, posts in duotone theme do not pick up background colours from image

In wordpress.org: After importing using wordpress importer, posts in duotone theme do not pick up background colours from image. The posts in the original website have the correct background. If I ...
reallydismayed's user avatar
0 votes
0 answers
25 views

Copy Content with Images to Other Site

Wondering if anyone has come up with any creative workarounds for copying content which includes images from one site to another? I looked into it many years ago and didn't get far, but wondering if ...
Kenny J's user avatar
  • 105
1 vote
2 answers
113 views

Image alt tag is showing post title instead of Alt Text

The image alt tag shows the post title in the source instead of the Alt Text. function my_custom_image_sizes() { add_image_size('homepage-thumb', 329, 185, true); } add_action('after_setup_theme', ...
rudyards's user avatar
0 votes
0 answers
6 views

Trying WP editor to load full size image (not '300x300')

The site used to have a plugin that created a lot of image sizes from uploads (150, 300, 800 px etc). I removed these images from the uploads folder bc they were not used by the theme. Now, the WP ...
Ludo's user avatar
  • 61
0 votes
0 answers
12 views

How to get rid of a blank space where the featured image used to be?

I want my featured image, or post thumbnail, for the post to be displayed on the "posts" or "home" page (they are the same on my site), but not on the actual post. This is easy ...
Car's user avatar
  • 1
0 votes
0 answers
10 views

I can't insert more than one image when creating a custom email

If I only put one image in the html, it looks correct but when I put the second one in this case recyclingimg.png everything breaks function creacionQR($url, $emailDestinatario, $empresa, $nombre, $...
Miguel Angel Salas8's user avatar
0 votes
0 answers
12 views

How Do I Prevent Featured Image Caption Displaying Above And Below Image

I'm trying to add an image caption below my featured image on my single posts. I have this working, but weirdly they are also displaying above the image. I'm hoping someone can help point out the ...
Nick Rowe's user avatar
1 vote
1 answer
23 views

Allow unregistered users to post embeded images from other sites in comments

how can I allow unregistered users to post embeded images from other sites in comments? Right now the wordpress strips any image html tag for unregistered users. Thanks.
purpleyellow422's user avatar
0 votes
0 answers
16 views

How do I set attributes for all images in a site

I'm having CLS issues and I think I need to set the height/width attributes across all images. Whats the best way to do this? Is there a CSS code? Where should it be placed?
Brett's user avatar
  • 1
1 vote
1 answer
59 views

Set Featured Image of a post

How to set Featured Image when creating post using $post_id = wp_insert_post( $args ); ?
Foysal's user avatar
  • 449
0 votes
1 answer
38 views

'Add Media' to post - filter images

Can anyone help me with this? ... I am trying to locate and understand the javascript and/or php/ajax code that filters the thumbnails that show in the interface when a user clicks "Add media&...
patrick_here's user avatar
2 votes
0 answers
17 views

I can't see all images in my media library - How Can I reset the index of that library?

When I load my media library (either through the media tab on the left or editing posts/pages and adding images in that interface) it shows that I have 1206 images in my site. However when I click ...
pressword's user avatar
  • 360
1 vote
0 answers
19 views

Is there a way to eliminate flyout menus when adding a post?

It seems like each new version of wordpress adds more intermediate menus and menu options than the previous. Particularly heinous examples include the Preview button with its form-factor checkboxes, ...
nich's user avatar
  • 13
1 vote
0 answers
14 views

How can I remove the post image hyperlink or edit it to target="_blank" when inside a protected folder?

I am handling hyperlinks differently and I don't need the image to also have a hyperlink of its own. But if it must-have it, at least I don't want it to replace my site. I'd prefer it opened in a ...
LOTUSMS's user avatar
  • 125
0 votes
0 answers
17 views

image doesn't display when option on product page chosen

I am using the the theme storefront, on my product page, when option chosen the image for option does not display, it use to. I have deactivated all plugins to see if it would correct issue, it didn't....
AndreaLL's user avatar
2 votes
1 answer
134 views

Display image title and caption on posts and pages

I want a simple function to display image titles and captions alongside each other below the images on wordpress posts and pages. All the answers I have seen do not work for me. Either they leave the ...
Anand Prakash's user avatar
0 votes
0 answers
65 views

"Media Library" shows as empty, despite images being present

I am trying to clone a WordPress site, but the files in wp-content/uploads aren't shown in the the Media Library: OK: I have created a new subdomain for a new installation of WordPress, and I have ...
Torben Gundtofte-Bruun's user avatar
0 votes
0 answers
24 views

Why are PDF thumbnails over-saturated?

Often then colors of PDF thumbnails generated by Wordpress are wrong, they look over saturated. Is there something I can do to correct that, or is that caused by the PDF itself ?
mike23's user avatar
  • 5,981
1 vote
1 answer
94 views

Add custom text before all image captions in WordPress posts

I add captions to images in WordPress using the "Caption" box to indicate the photographer's name. I need custom text to always be displayed before the image caption, That is, now I just ...
Jusper's user avatar
  • 11
0 votes
0 answers
13 views

Upload media file failed. Uploadtest failed

When i want to upload a media file in wordpress (dashbord media) i get the message: Uploading “” failed. The file failed the upload test. php version: 8.0.30 Is there a string/variable that must be ...
Albert Lepoudre's user avatar
0 votes
0 answers
7 views

WP galleries in posts after import. How do I do it?

I moved the website posts with Wp All Export and All import, which worked fine, but many of the posts contained galleries (Wordpresses gallery with [gallery] shortcode). The problem is that now the ...
vicartdesign's user avatar
1 vote
1 answer
59 views

How do I link an image in a svg file in wordpress?

I'm trying to use a svg file that contains a vector and an image, the problem however is that the linked image in the svg won't load. The vector part of the svg is loading however. I figure the ...
koeliga's user avatar
  • 11
1 vote
0 answers
24 views

images not loading on wordpress website hosted on aws ec2

I have successfully deployed my wordpress website on AWS EC2 , directed to the custom domain, with SSL installed through load balancer and route 53 records but now the images are not being shown in ...
celina kapoor's user avatar
1 vote
1 answer
250 views

Convert base64 string to WordPress attachment uploads multiple images instead of a single one

I'm trying to convert a base64 string to an image file and upload it into WordPress media library. It seems like the code is working, but, for some reason, every time I call this function it uploads ...
benjah's user avatar
  • 111
1 vote
1 answer
27 views

WP "optimizing" PNGs into thumbnails 5X larger than originals - FIX

As I am about to add over 50,000 product photos to a site in development, I am more than concerned about the thumbnails being generated and “optimized” by WordPress. Between WordPress, Woocommerce, ...
Swapot's user avatar
  • 11
0 votes
1 answer
18 views

Changing Theme produced a problem on some pages

When I changed the Theme to Twenty Seventeen a few of the pages had the following text instead of the Header image: Notice: Only variables should be assigned by reference in /var/www/wp-content/...
chrisgray13's user avatar
0 votes
1 answer
25 views

Redirection - bulk edit 404s to new tomain

Please help. I moved all (1500) posts from one category to a new domain. now I have a lot of 404 errors for posts and images. Trying to use Redirection, so I'm on the 404 page, bulk edit select all ...
Will Sher's user avatar
1 vote
0 answers
48 views

Responsive images, per image type?

I am new to understand responsive images. Unfortunately the resources out in the internet did not help me to fully understand the concept, so please bare with me. I would like to know hdavidow if it ...
kocjs's user avatar
  • 23
0 votes
1 answer
47 views

Understanding images handeling

I am facing an understanding issue with image accessibility on my WordPress website. Here’s the scenario: My website URL is mysite.com. I have a post titled “hello-world,” which is accessible at ...
kocjs's user avatar
  • 23
0 votes
0 answers
16 views

Image shows up in editor, but not in published blog post

I'm having a problem with my blog page. I'm adding images to my blog posts and I can see them on my back-end however, not in the published blog post. Am I doing something wrong? example page is: https:...
Lina's user avatar
  • 1
0 votes
1 answer
32 views

Blurry Images on my Website

After I upload images on my website, the images get blurry, particularly the ones with the text (please see the attached image where the right copy is local and left is in Media Library). I have ...
QMC's user avatar
  • 101
0 votes
1 answer
186 views

Remove srcset thumbnail attribute for products in the WooCommerce shopping cart

I have this code: add_filter('woocommerce_cart_item_thumbnail', 'doChangeCartThumbnail', 10, 3); function doChangeCartThumbnail($thumbnail, $cart_item, $cart_item_key){ $_product = ...
Nick's user avatar
  • 103
1 vote
0 answers
50 views

Wordpress Image Upload - 403 with Cloudfront Enabled

I have a WP instance set up on AWS Lightsail. I've set up Cloudfront in front of it, pretty much following the steps set out at https://itnext.io/how-configure-a-wordpress-site-with-lightsail-using-...
Stuart Brown's user avatar
0 votes
0 answers
22 views

Best practice for Wordpress media image use

I'm considering using my company's Wordpress website as a place to upload images (to media) and use the WP URL to link images on the company's email signature. Mainly so I have a URL to use on the ...
Rocket's user avatar
  • 1
0 votes
1 answer
33 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
1 answer
40 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
2 votes
0 answers
38 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
12 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
21 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
39 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
111 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
69 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
51 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

1
2 3 4 5
72