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
1
vote
0answers
13 views

having issue while uploading An error occured in the upload. Please try again later

First there are lots of question with this title. I have went through all but any of this not solving my issue. I am having error while uploading image on the server Things i have tried upload ...
0
votes
0answers
9 views

How do I get an image description to show up when you click on the image and it goes full screen

Before when you clicked on a thumbnail image in a gallery I used to get an image description when it went to the full sized image. so I could put the title of an artwork, dimensions etc. now they've ...
1
vote
1answer
17 views

How to stop wordpress always displaying full-res images

Currently, my website is over 56mb just on the home page... I have 5 images, it's far too large and is killing the speed. Is there a way to make my site only display thumbnails or is this always ...
1
vote
1answer
20 views

How to change image atributes right before an image to be saved?

I have an installed plugin to import XML content, but it can't change some meta-data of the new image that will be saved. For example, I'd like to intercept the action of saving an image BEFORE its ...
0
votes
2answers
16 views

How do you output an unknown number of images in a custom post type with desired markup?

I'm working on a theme that will have an image gallery within a custom post type. I'm able to insert them into the post (using Advanced Custom Fields and embedding them in a WYSIWYG box) but I was ...
0
votes
1answer
13 views

The image keep redirect to my previous URL after I moving my site

I have just move my website from a server to a cpanel which become localhost now. I simple copy all the wordpress file and database to cpanel.In fact, all the product image is can not be linked to the ...
0
votes
0answers
8 views

Images are not updating for public viewers of my site

This is the view from my side: https://snipboard.io/dSlDEY.jpg This is how it looks when I see while logged out or when someone else view it: https://snipboard.io/19uXG0.jpg Domain: ...
0
votes
1answer
14 views

how to give multiple post thumbnails to a post

the image with the red cercles are the post thumbnail images, i want to give each post an image of size 100px X 60px, i dont know how to make it, this will make the website faster , becease it will ...
0
votes
1answer
17 views

Modified core/image rendering not showing in posts - only on pages

I followed this suggestion to slightly modify the rendering of the core/image block. This works perfectly for images on pages. But I need the same rendering also in posts. But the method above does ...
1
vote
1answer
12 views

Show featured image option not in screen options

I used to be able to see featured images in the posts list but after upgrading I don’t see the option to turn on featured images from screen options. Is there a way to get it back?
0
votes
1answer
15 views

Broken images on iphone

I have broken images on iPhone, it happens only on the home page where I added new images about a week ago (the new images are exactly the same format and more or less the same size as the old images) ...
0
votes
0answers
19 views

WooCommerce - Add product with Product category and Image from Mobile App

I am new to WooCommerce development and REST API provided by WooCommerce. I am facing 2 issues right to add new product as a vendor from my Mobile app which is in React Native. 1.I am adding new ...
0
votes
0answers
7 views

Allow manually upscale image

Similar question was answered here: How to scale up featured post thumbnail? - but it solves a little bit different issue. I would like to allow upscaling images within the photo editor. I use a ...
1
vote
0answers
17 views

Missing a temporary folder.error when image is uploaded in admin Set temporary Directory - Wordpress 5.2.2

I am finding this error when I try to upload image in backend Missing a temporary folder. Tried setting temporary folder in wp-config.php with necessary permissions. Tried to set the temporary ...
0
votes
0answers
41 views

Display an image using path from value set in cookie

I was wondering if anybody could help me please. I've been struggling with this for a couple of days and running out of steam. Google isn't so great now either :/ I'm trying to display an image on ...
0
votes
1answer
16 views

Allow users to upload attachments to certain posts

I am hoping to get some possible solutions from you all :) I have 330 regions set up as a taxonomy category. Each region has it's own landing page displaying posts relating to that area. I wanted a ...
1
vote
1answer
17 views

Trying to create a mouseover effect in html using Gutenberg editor

I am trying to create a mouseover effect in html on a content block in the Wordpress code editor. I want an icon to change color on mouseover and change back on mouseout so I'm referencing two ...
0
votes
1answer
42 views

Access html element in media modal with jQuery

I'm using the following code to add the required attribute to a textarea tag. HTML: <label class="setting" data-setting="caption"> <span class="name">Beschriftung</span> ...
0
votes
0answers
31 views

When upload a PNG a noise appears in the thumbnails

Since we updated wordpress something strange has happened. We have a woocommerce where products have different color options for each part of this, and when you select a color, the image with that ...
1
vote
0answers
22 views

How can I use cached images in an AJAX response?

WP_AJAX includes no-cache headers with its responses. I'm using Ajax to fetch part of a shopping cart, which includes little image thumbnails. On each Ajax request, these are replaced and we can see ...
0
votes
0answers
15 views

Wordpress discards PNG file when uploading plugin file

I created a simple WordPress plugin to customize the login screen. The plugin consists of three files: index.php - adds the actions and filters functions.php - contains the functions to customize the ...
0
votes
0answers
11 views

Hook for validating and rejecting frontend image upload

I am making a plugin that checks the contents of uploaded images. Right now I am testing if I am using the right hook, so I use getimagesize() to check the image (I am aware this is not the best/most ...
0
votes
0answers
15 views

Image from URL Wordpress Plugin

I'd like to know if there is an existing plugin in Wordpress that can do the following - Allows to upload multiple images from URLs - Has the feature to create a gallery/slider/carousel out of the URL ...
0
votes
0answers
10 views

rescale too big images when downoaded

I am using download_url(), and wp_handle_sideload() to download images from a json feed. I need to check if the images are bigger than 4000px wide, and if yes, then scale it down. this is my ...
-1
votes
0answers
17 views

Twenty Seventeen Header Image Positioning

I am using the Twenty Seventeen theme with the „Options For Twenty Seventeen“ plugin. My header image has a focal point at the bottom, which causes trouble when the site switches to mobile view by ...
0
votes
1answer
18 views

How to change background image

I am new to wordpress and although searched all over I cannot seem to find an answer for my question so any help would be appreciated: I have the following code: [vc_row row_type="parallax" ...
0
votes
1answer
18 views

How to convert srcset links from https to http?

After trying SSL and having some unfortunate problem with it, I decide to go back to HTTP. Everything seems find, by the srcset attribute of <img> tag is still https everywhere. This post ...
0
votes
0answers
8 views

Is there a way to add an unlimited amount of image controllers?

Is there a way to add an unlimited amount of image controllers in the customize section ? For example, If you have one image controller setting with cropper, but you want to add several more ...
0
votes
1answer
12 views

Enlarge Featured WordPress Images

Enlarge Featured WordPress Images I plan to use Wordpress AMP, but this plan has not been realized because the largest image in all posts that have been published is only 640 x 360 px while for AMP ...
0
votes
2answers
25 views

Redirect when user clicks on an image

I want to make it so that when a user clicks on an image in my site, they are redirected to a specific page. I WAS using a submit button for the redirect, but I want to replace it with a custom-...
1
vote
0answers
8 views

Transfer only original images to new site

I'm rebuilding a site on a working directory. It's an older page and I thought I'd take this opportunity to clean out Uploads. The site has had 3-4 themes and each one has spat out 4-6 resized images ...
0
votes
1answer
15 views

add_image_size() in custom theme is not generating and saving any thumbnail

I am creating a custom theme (WP version: 5.2.2). In functions.php I added a few custom image sizes in the following way: function abhijaan_theme_setup() { function abhijaan_theme_setup() { ...
0
votes
0answers
18 views

Uploading an image to the media library causes problems

I'm currently trying to upload an image to the WordPress media library programmatically. The problem is, that when I check the media library, there is no thumbnail showing up and the file size is also ...
0
votes
0answers
25 views

How can use wp_get_attachment_image_srcset for WebP?

I want to serve both JPG and WebP versions of the images.
0
votes
0answers
16 views

How to auto add image caption from image alt?

How to automatically copy image alt to caption/description in WordPress?
0
votes
0answers
21 views

Jetpack Lazy load images fade in

I'm using Jetpack to lazy load images and wanted to fade in them nicely using CSS. I've tried adding the following CSS in my theme: .jetpack-lazy-image { opacity: 0; -webkit-transition: .3s; ...
0
votes
0answers
21 views

How Get rid of srcset on a image size and force the size on all screen?

I recently figured out a huge problem for images on my site. I recently disabled all the WordPress image sizes (thumbnail, large, medium-large) except for the medium size. Now I only have medium and ...
1
vote
0answers
17 views

How to Upload Images From a Folder (Not WP_Uploads)

Everything I am passing into the function exists but no images are being attached. The images are not in the WP_uploads folder, they are in a seperate folder in the home directory. This is executed ...
0
votes
1answer
21 views

How can I add image sizes for a specific custom post type?

What I'm trying to achieve is to define a specific image size (a portrait thumbnail) for a specific post type (books), so that only this post type has this thumbnail size generated and I'm not wasting ...
0
votes
0answers
22 views

Background images not loading on homepage (using Divi Theme)

For some reason my background images are no longer loading on my homepage - I recently updated my theme to Divi and the images were showing up before but are not now. I can't figure out why they are ...
0
votes
1answer
15 views

add alt text to images loaded from json with media_sideload_image

I am using media_sideload_image() to save images from a json feed is there a way to attach alt text to the images?
0
votes
1answer
12 views

Wordpress 4.4.2 upload give error, can't write is upper directory allowed to be written

I searched around for this problem en found a lot of ideas most has to do with write access. The idea is: Put all directories in the wp-content/upload to 744 if not work to 755 and all the files to ...
0
votes
0answers
20 views

Watermark product SKU on image

Can we print product SKU on image?. i just want to watermark product sku on image. is it possible? i had tried various watermarking plugins. but hadn't found this funtionality. plz some one guide ...
0
votes
0answers
9 views

Some images not showing up on posts or preview even though its on that location

All of a sudden, some of the images of our site (http://lagatar.com), including the site's logo png, is not showing up on the posts or preview (on media menu/post edit dashboard). But those images are ...
0
votes
0answers
13 views

Make alt text required when setting a featured image

In the EU it will shortly be a requirement for public sector websites to have alt text for uploaded images. My organisation's users are rubbish at adding alt text, however, and I'm trying to find a ...
0
votes
0answers
7 views

User to be able to upload images x2 and email them

I need to allow a user to upload two image files on the front end on my website. I need these images to them be emailed to an email address I choose. Is this possible?
0
votes
0answers
28 views

How can I change featured image in a larger size for 768px screens?

I'd like to change the size of the feature image in the archive page adapting it as a larger image (full screen) for devices within a range 480 - 768 px. In the php for the display in the archive ...
0
votes
0answers
14 views

How to customize default image sizes attribute?

I created custom images sizes: add_image_size('smartphone', 333, 187); add_image_size('galaxy',282,159); in addition to the default wordpress sizes: medium (670, 377) // medium-large(768, 432) // ...
0
votes
0answers
10 views

Resizing images on page

I'm having problems resizing a lot of the pictures in my page. For instance, using a "cover" image lets me resize the width but the height remains the same, no matter what I do. I have tried the ...
0
votes
0answers
26 views

Image alt attribute

My images have alt attribute, but is not showing. My SEO pluging does not recognized them and google prensets the an alt text that is not the one I wrote but the name of the picture(file). this is how ...