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

Why can't I gain access to my homepage images?

Site: https://burgessroad.org/. WordPress version: 6.0 I inherited maintenance responsibilities for the site and I need to replace some images on the homepage and alter positioning of others because ...
user avatar
0 votes
1 answer
10 views

Using "add_image_size" to register custom image sizes inside plugins not working

I noticed that most examples of add_image_size() is done via the after_setup_theme hook. Which means, for it to register, one has to switch theme and reactivate the theme. Which is not ideal for me as ...
user avatar
  • 139
0 votes
0 answers
19 views

HTML Img with data:image src gets sanitized in admin?

In the WordPress admin panel (dashboard), I want to add an image inside an ACF field description. Since it's a simple SVG icon, I want to load it using <img src="data:image/svg+xml..." /&...
user avatar
  • 123
0 votes
1 answer
15 views

Can't find image to remove

I noticed when debugging my first ever Wordpress site that I was getting an error Access to image at 'http://192.168.1.250/wordpress/wp-content/uploads/2018/11/bg-10-free-img.jpg' from origin 'http://...
user avatar
  • 101
0 votes
0 answers
21 views

Some problems in custom widget

I made a custom widget for my template, which has an image upload section For the first time, I upload an image, it displays correctly, without any problem, but when I want to change the image, it ...
user avatar
  • 1
0 votes
0 answers
14 views

Not Able to Add New Class To CPT Attachment Image

Testing against WordPress 6.0 and using Codex, get_image_tag_class filter to remove all existing default classes and add new class img-fluid is not working Here is the code that I am using in ...
user avatar
  • 193
0 votes
1 answer
33 views

Displaying images outside the content

I am trying to achieve to following design: This is what I got so far: I'd like to have the bottom images as in my design example. This is, how my single.php looks like. I just can't find a solution ...
user avatar
  • 1
0 votes
1 answer
16 views

WP Still Generating 150x150 Thumbnail Size Even After Un-Setting Small Size in Functions.php

I am using following code to prevent WordPress from creating some un required image sizes for my theme and only upload the original size add_filter( 'intermediate_image_sizes_advanced', '...
user avatar
  • 193
0 votes
2 answers
19 views

How to add a custom class to all the images for a page only?

I have a page where I want to add a custom class to all the images. How to add this? Thank you.
user avatar
0 votes
2 answers
32 views

ACF get_sub_field ALT TAG in the repeater doesn't show

I have one problem. I can't get the alt tag inside me repeater fields in ACF, I've tried multiple methods and nothing works for me, could you please help me? I can't fix this problem for a week :( ...
user avatar
0 votes
0 answers
10 views

Doing a bulk replace of images through back-end

I am trying to rename images to be more SEO friendly. I have over 10K images so I am trying to do it in bulk. I tried several plugins and its take too long to rename them, 100 images take more that an ...
user avatar
  • 1
0 votes
2 answers
27 views

Upload non-featured image to image field

I'm trying to upload some associated media to a custom post type. Using file_put_contents() I'm uploading an image and trying to set an ACF image field to be the path to that file. But reading the ...
user avatar
  • 126
0 votes
0 answers
10 views

How do I make the product image smaller on a WooCommerce product page?

The template in WooCommerce for product pages makes my product images huge. I have a portrait-style picture of a book cover on each product page. Is there any way to make the image smaller, not ...
user avatar
0 votes
0 answers
15 views

Offer Download Links for Product Images

For a B2B shop, I would like to give customers the possibility to easily download product images. To do this, I would like to display links for the product-specific images directly on the product ...
user avatar
0 votes
0 answers
19 views

Checking page before applying image restrictions while uploading

so users can upload images on my website and I want to put some restrictions on these images while they are uploading. The catch is that these image restriction can only apply on one page, being the ...
user avatar
0 votes
1 answer
18 views

Serving Images from subdomain in wordpress

This is my current image url https://example.com/wp-content/uploads/2022/06/sample.png served via cloudflare uploads folder is in my wordpress installation I am syncing the uploads folder to Backblaze ...
user avatar
  • 1
0 votes
0 answers
15 views

Can export gallery but can't import it Wp all import

I have a store with WordPress and alidropship plugin no woocommerce , I tried to update some galley images with CSV file but I can't do it because alidropship gallery images are different than ...
user avatar
0 votes
0 answers
11 views

Is it possible to save crop to a different size of the image when in image editor?

In Image editor, where one can crop and rotate images, there is an option to save changes only to thumbnail, or to all sizes, or to all sizes except thumbnail. Is there a way I can save them in ...
user avatar
0 votes
1 answer
13 views

add_image_size function not working

In functions.php i have, function university_features() { add_theme_support('title-tag'); add_theme_support('post-thumbnails'); add_image_size('professorLandscape', 400, 260, true); add_image_size('...
user avatar
0 votes
0 answers
28 views

how to change format jpg to webp?

i have about 3750 thumbnails that i have converted to webp (without plugin), how do i change the file name, file type and file url in the media library at once, without having to re-upload one by one. ...
user avatar
0 votes
1 answer
33 views

Bulk-add featured images in posts with no featured image

I have a site with loads of posts (news items). Some posts don't have featured images yet. Adding the images to those posts (few hundreds) is a tedious task. We basically want to add 1 and the same ...
user avatar
  • 111
0 votes
0 answers
25 views

How to get rid of undefined variable in previous post image

I am working on a website on WordPress and I have it set to where the bottom of the post will automatically link to a random previous post with a picture from that previous link but a notice keeps ...
user avatar
  • 1
1 vote
1 answer
18 views

Migration to WP - Couldn't load image

Situation: I'm trying to migrate static page made with HTML/CSS/JS into Wordpress. The images won't load. They work in HTML, but when I migrate into PHP there are only alt-descriptions visible. Upon ...
user avatar
0 votes
1 answer
35 views

Updating product image

I have been having this problem recently, I want to update quite a few product images on my website with updated versions. I save the image with the exact same name and upload via FTP to my server, to ...
user avatar
  • 1
0 votes
1 answer
18 views

My authors need to be able to preview their upload images and manipulate and scale

I am using a form and that form allows for IMAGE UPLOAD. After submission the form redirects and then they can see the reviewed post - however if the image which they uploaded blindly does not look ...
user avatar
0 votes
0 answers
9 views

Maximum image width/height?

If uploading a big image, WP will decrease the dimension and add -scaled to the file. How can I get what is its max limit? 5000x5000 => it can't be greater than X so WP will make it smaller than X. ...
user avatar
  • 101
0 votes
1 answer
22 views

Place image caption outside of figure tag (Gutenburg Image Markup)

I format my single.php images to a perceived 3:2 ratio like this: <figure style="position:relative; width:100%; padding-bottom:66%;"> <img style="position:absolute; width:100%; ...
user avatar
0 votes
0 answers
17 views

Images not uploading on product page of woocommercr

Images on showing on product page and also on all product list. Product image not showing enter image description here
user avatar
1 vote
0 answers
14 views

How to get the url of an Image with id

If I have the id of an image media file, how can I get the url, to download it via rest api? I'm using the Pods Plugin to create my own objects. thes have images included i want to download via rest ...
user avatar
0 votes
1 answer
43 views

Is there a wordpress filter to edit the markup of inline images?

I would like to add a class to wordpress inline images. Is there a filter that i can use to edit its markup?
user avatar
  • 295
0 votes
1 answer
11 views

Featured Image Cetegory Not Shown In WordPress

I am trying to create a post for a new WordPress website, and want to show a thumbnail in my blog for the post. However, the "Featured Image" tab is not there. I have seen the solution to ...
user avatar
0 votes
0 answers
20 views

Responsive Images from S3 has no srcset

My Production server has blurry images. Turns out, the image rendered has missing srcset. Upon searching, I checked that the images uploaded was not on the server where I host my wordpress but was ...
user avatar
0 votes
1 answer
11 views

WordPress Animation Adjustments

I have a problem with my WordPress animations. https://cyals.com is the website Currently developing. I Use Elementor Page Builder to build my page. a man and a woman load with animations one by one ...
user avatar
0 votes
0 answers
11 views

Edit Page did not get refresh after update

I notice if I performed a filename change for an image under "Edit Page", the page does not get refreshed automatically. Is this normal? Replication Step Upload new image via "Upload New Media&...
user avatar
  • 13
0 votes
1 answer
13 views

The URL of images on my website changed after being set as featured image

When I upload the image, it is https://www.mywebsite.com/wp-content/uploads/2022/03/image-name.jpg After I set it as a featured image, it is like: https://www.mywebsite.com/wp-content/uploads/...
user avatar
0 votes
0 answers
11 views

Custom image sizes showing in Classic Editor only when upladed directly to post

I can't get custom image sizes to appear in Image details size selector unless the image is uploaded directly in the post. If you choose an image from the Media library only default image sizes are ...
user avatar
  • 1
0 votes
0 answers
13 views

theme directory fallback image outputs url and not the image

I am adding a custom post thumbnail column to the user admin table in WordPress. I want to retrieve a fallback image from my theme image directory if no post thumbnail has been created. I don't want ...
user avatar
  • 125
0 votes
1 answer
22 views

Change Image Size option in the settings in bulk

I was wondering if I can change Image Size option in the post settings panel. From Large to Full Size. Automatically in all posts? I have about 500 posts... :) Seem can not find any answer to that. ...
user avatar
-1 votes
1 answer
75 views

wordpress is generating too many Image Sizes

I have removed the default image sizes, and added my custom image sizes with this code: // Remove default image sizes function remove_default_image_sizes( $sizes ) { /* Default WordPress */ ...
user avatar
0 votes
0 answers
19 views

Image modification

I am a beginner at CSS. I have followed Airbnb clone challenge. I believe that I follow everything the instructor does. Here is my problem. I added an image from my wix website. And, I added layout, ...
user avatar
1 vote
1 answer
295 views

How to upload images in a specific folder using API

I have installed wordpress plugins Real Media library, Real Physical Media, and Media file renamed. Using this I am able to physically move images and organize images in the upload folder as per ...
user avatar
0 votes
0 answers
15 views

How can i sorting and display image order by siz in media library?

How can i sorting and display image order by size in media library? Sorting is important for me? Any one can help me please?
user avatar
0 votes
0 answers
16 views

x2 images for retina?

What are best practices for retina screens regarding images? Do you x2 everything? That meaning do you export all images at double size? (then of course display at half that with css).
user avatar
0 votes
1 answer
21 views

Custom image uploader without widgets

I'm developing a site that is using Wordpress for database interactions, but I'm not really using features like pages or posts or widgets. I'm trying to create an input form that allows the user to ...
user avatar
0 votes
0 answers
17 views

How to change background slider image when hovering on text?

I'd like to have a full screen slider with several project title headers on top. My goal is that when the user hovers on the name of a project, the backgorund image changes to an image specific to ...
user avatar
0 votes
1 answer
17 views

Not able to retrieve image id from sibling site within a switch_to_blog

Here is how I am trying to grab the image id for 'white_logo'. switch_to_blog($site->blog_id); echo attachment_url_to_postid( get_theme_mod('white_logo')); restore_current_blog(); The echo is ...
user avatar
  • 17
1 vote
1 answer
71 views

Remove the inline styling added in wp_get_attachment_image()

Here is how I am calling wp_get_attachment_image: $id = attachment_url_to_postid( get_theme_mod( 'blue_logo' )); echo wp_get_attachment_image($id, $size = 'blue_logo', $icon = false, array( "...
user avatar
  • 17
0 votes
0 answers
24 views

How to display a warning when an uploaded image is too small?

I want to display a warning when a user uploads an image with too low a resolution. I don't want to block the upload, just give a warning. The only option I see is wp_handle_upload_prefilter, but ...
user avatar
0 votes
0 answers
46 views

How to disable a WP Image Block to link to itself?

When I insert an image through Gutenberg. The default behavior will make the image clickable. When you click on the image, it will open the link to the image. I don't want the images to be clickable, ...
user avatar
  • 1,009
0 votes
1 answer
19 views

image resizing on post content without css and html tags

Background: I am using WordPress posts for Newsletter. I am importing the posts through an api and use them in a Newsletter tool to send them out. I am downsizing the featured image before feeding to ...
user avatar

1
2 3 4 5
70