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
1 answer
23 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
14 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
12 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
  • 119
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
87 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
11 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
16 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
8 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
8 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
20 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
35 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
18 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
56 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
25 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
66 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
20 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
41 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
38 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
13 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
45 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,766
0 votes
1 answer
30 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
  • 861
0 votes
0 answers
24 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
43 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
17 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
29 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
8 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
0 votes
0 answers
20 views

How to set height by wrapped div on an image block

I'm writing a custom Gutenberg block. I'm trying to limit an IMG tag to the height of a wrapping div tag that the designer can set. I can do it without the WordPress styles applied, but something is ...
Phil Huhn's user avatar
  • 133
1 vote
1 answer
165 views

Disable image compression for WebP

The following function disables image compression: add_filter( 'wp_editor_set_quality', function( $arg ) { return 100; }); Does this cover WebP images as well as JPEGs?
Sam's user avatar
  • 2,106
0 votes
0 answers
33 views

Wordpress + REST API + featured_image

I currently have a WordPress blog with images stored in an S3 AWS bucket. I upload the images directly to the S3 bucket "manually". I have a text file with the image urls for each post. ...
Jarboy's user avatar
  • 1
1 vote
1 answer
110 views

Set srcset on a block image

I'm trying to set the srcset property of a block image. I'm replacing the image with another one and I noticed the attribute srcset is not being set, so I'm trying this with no success: wp.data....
Alvaro's user avatar
  • 119
0 votes
1 answer
62 views

WordPress Site Broken and it gives Headers Already sent error

My wordpress them is broken and Am getting the error below. PHP Warning: Cannot modify header information - headers already sent by (output started at /home/jcceastl/public_html/index.php:174) in /...
June Muoti's user avatar
0 votes
0 answers
14 views

Wordpress: How can I mix my content background image with footer

Hi I am new to wordpress and I would like to know how can I fit my footer with my content background image? What I want: What I have now: What I want to achieve is I want to put my footer content or ...
Kopi Bryant's user avatar
0 votes
1 answer
14 views

Some images not loading after changing IP on local wordpress install

Im running wordpress locally (via docker), and everything is working fine. At some point, I changed some router configurations, and my IP changed, from 192.168.1.1 to 192.168.1.2 (just an example, but ...
masok's user avatar
  • 1
0 votes
1 answer
23 views

Adding caption to all images inside an article

My client has decided he wants to add inside the article body, for each image, the caption below the img tag. I know WordPress has this shortcode built in, but since there are more than 300 articles, ...
Andrei Zamfira's user avatar
0 votes
1 answer
41 views

How to add embed image in comments?

I'm looking for a way to display the images when the commenter adds a simple link to this image (without plugin, without upload, nor activate TinyMCE). For now, when the commenter adds a link to an ...
dragoweb's user avatar
  • 249
0 votes
0 answers
46 views

How to make Media Library files private?

I noticed that I can still browse my media library "attachment page" without being logged in. In other words, it seems like all you need to do is find one attachment page, and then you can ...
PJ Brunet's user avatar
  • 500
0 votes
0 answers
15 views

My images aren't loading after adding update_option('upload_url_path', '')

I tried using update_option('upload_url_path', '/product_large') to change the url of my images. After updating the functions.php my images aren't loading in my site. Any possible solution? Thanks!
James's user avatar
  • 1
0 votes
0 answers
15 views

Automatically integrate feature image to wordpress article via API

I have created a scenario with the automation Platform Make to automate my Wordpress article redaction. I start from entering inputs in a Tally form, then Make send it to OpenAI API to redact the ...
JS1's user avatar
  • 101
0 votes
0 answers
15 views

The uploaded images are only full-size (original)

Usually uploaded to the library pictures are divided into 4 sizes: full, large, medium, and thumbnail. But as it happens, the uploaded images are only full-size (original). It is necessary to divide ...
snake_case's user avatar
0 votes
0 answers
14 views

Images uploaded in customized gallery do not link to media

I am trying to set the default values for uploaded images and galleries to always be full size and link to the media. As per an answer to this question, I created block variations for the image and ...
Richard K's user avatar
0 votes
0 answers
31 views

Optimize blog that serves hundred of images and videos

We have a website that contains 20,000+ media. It serves images and videos per post(500 post as of now). Opening posts takes a very long time to open because it contains images(500+) and videos(50+). ...
user14772091's user avatar
0 votes
1 answer
21 views

<select id="image-details-link-to" data-setting="link"> changing option for all posts

How can i change option value as 'file' for all posts? <select id="image-details-link-to" data-setting="link"> <option value="file">Media file</option> &...
Kmeral's user avatar
  • 1
0 votes
1 answer
67 views

How do i display the number of images on the "post screen"

I need help displaying the number of images in a POST on the post edit screen, For example if 5 images are attached to article A, and they are now reused on article C it should display the total ...
iamkingsleyf's user avatar
0 votes
0 answers
37 views

images map on website not working

I maintain two websites, where they use images with links in it, with img-map. Basically, some images are in the main content and then, there's another on the footer. I've recently realized that the ...
Resa's user avatar
  • 1
0 votes
0 answers
17 views

I want to resize post featured image without cropping image. How?

I want show post featured image on different page in different size but image in not showing full. Also, do not want to crop image. I am adding an link that what type of work I want do. Example When ...
First Guide's user avatar
0 votes
0 answers
12 views

How to move all images in a post to a single gallery for a bunch of posts?

So, I have just addded bunch of blog posts, just pasting the pictures as seperate pictures. Now, I want to switch to using galleries for ALL of the posts. Any idea how? Thanks in advance
MajliTech's user avatar
0 votes
0 answers
158 views

Uploading media to wordpress API with C# HttpClient

I was trying to save some media but I can't get it to work. I don't know if its the authorization is the wrong format, or if its the content is just put in wrong. If someone knows how to please help ...
UltimateSeeSharp's user avatar
1 vote
1 answer
24 views

How to have the frontend show the appropriate image size?

When I include an image, that is 1600 pixels wide, in an image block and set it to be 'Full width', it shows properly in the backend. But in the frontend, where it is to fill the entire width of the ...
MastaBaba's user avatar
  • 231

1
2 3 4 5
71