Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
0answers
7 views

How to Change WordPress Sub Folder Image Directory To Root Directory [on hold]

मेरी एक वेबसाइट है जो अभी हिन्दी में है zaykarecipes.com में इस वेबसाइट के पेज ट्रांसलेट करके इंग्लिश में बना रहा हूँ तो मेने इसके लिए एक सुब फोल्डर ( zaykarecipes.com/eng ) में एक दूसरा नया वर्डप्रेस ...
0
votes
0answers
8 views

Video inside a picture

I'm trying to find a plugin or how to show a video in a image. Put a video on a particular area of a image. I have a newsroom image that I would like a video to play on a area like a tv screen. Any ...
0
votes
0answers
10 views

WordPress Media Grid - not loading pictures

The following page contains 2 media grid sections. The media grid under title: Finishes is not loading. I only see animated loading dots but the pictures won't load: http://acdwheels.com/brixton-...
-1
votes
0answers
7 views

how can add link in img (before & after slide)

in slide before and after image like https://avada.theme-fusion.com/before-after-image how can add a link in before photo and different link in after photo which click it to open the link
1
vote
1answer
20 views

Hero image cropped at different dimensions

I have a site with a hero banner image. This is how it looks on desktop: This is how it looks on mobile (via Chrome Dev tools): As you can see, the image on mobile is too narrow, I want it to look "...
0
votes
0answers
13 views

How can I add links to posts and pages using a particular image from its own media attachment page?

I have various media attachment pages e.g. https://www.artobatours.com/rock-art-abric-del-mas-den-ramon-den-besso-muntanyes-de-prades-catalonia/ where I have the image and some exif data. Along with ...
0
votes
0answers
6 views

Wordpress5 with Gutenberg no showing images in Preview

I have finally updated to Wordpress 5, for fear of things breaking. Now I have, and images are now showing when I Preview, there is no code there at all for images. It's like Wordpress is not even ...
0
votes
1answer
10 views

Set custom banner image size with wp_customize

I've set the banner image of my site to be customizable through appearance -> customize. I'd like to adjust the image size and crop aspect ratio of the customizer, as it's still set to a thumbnail ...
0
votes
0answers
7 views

How do I add/remove images from a carousel set up on salient theme? [closed]

I need to update the images used in our schools' salient image carousel. Unfortunately, I can't work out how to remove or add an image to the carousel! Below is a screenshot of the section of the ...
0
votes
0answers
7 views

My Facebook Share Thumbnail images are suddenly being resized [closed]

Facebook used to share a 500x264 image for me that looked nice and filled across the width of the facebook feed. Now, it looks like Facebook is pulling a 301x226 version of my featured images. How can ...
1
vote
0answers
14 views

Move Image Captions Inside Link (<a> tag) if Added

I'm just looking for a relatively simple way to modify the default output when a standard post image with a caption is linked somewhere (generally to another page), so that the caption is included in ...
4
votes
1answer
48 views

Apply image width to <figure> tag

Before the Block Editor was implemented, the <figure> tag used to have an inline width styling, matching the value of the image inside, example: <figure style="width:300px;"> <img ...
1
vote
0answers
16 views

Is it possible to change 'Link to' in all images in all articles?

After some update, they all changed to none. Need to change to 'Media file'. Can I do it once and for all pictures in all articles? I see in the text of article difference between images with Link To ...
0
votes
1answer
24 views

Delete attached images from posts

I exported posts from site X to Y. But in every post on site X there was image attached to it (not featured image) <a href="http://x" rel="attachment wp-att-25425"><img src="x/wp-content/...
0
votes
1answer
27 views

Remove Featured Image & All Media Uploaded to the Post

I found a solution of removing featured image related to the post when delete the post from this article but, I want to remove all the uploaded media also with post removing. Delete all WP image ...
-2
votes
0answers
34 views

Why uploaded images are pixelated

I have a website and I am running Easy Digital Downloads plugin and Olam theme where I am uploading images of size 1820 x 1214 pixels. The single product pages are serving image of 870 x 580 pixels. ...
0
votes
0answers
9 views

Is it possible to remove original src from wp_calculate_image_srcset() results?

Was just wondering how one could load a custom srcset stack. I know the srcset loads all registered sizes so I'm good on that side but I cannot find a way to remove the original src from there without ...
1
vote
1answer
29 views

Rename image file by post title

Best regards, I want to change the name of the automatic image with the title of the post. For example, I have the image called 1231231252345.jpg and Title of the article is "Article for a test", I ...
1
vote
0answers
15 views

max_srcset_image_width doesn't work as intended

I register a new image size in my theme, i.e: add_image_size('home-slide', 1500, 756, true); and I set the maximum size for the srscet attribute of responsive images to 1024: function ...
0
votes
1answer
14 views

Image sizes reset when changing theme

Is there a way to prevent my image sizes in media settings from changing when I switch themes? This doesn't seem like it should be a normal thing but it is happening! thanks
0
votes
3answers
47 views

Featured Image not changing

Here is what the situation with my featured image. When I try to change the featured on my site. It doesn't change at all. Here is how I currently try to change the featured image on my page: I ...
0
votes
0answers
27 views

Filter not applied to all image sizes

I have a callback applied to wp_get_attachment_image_attributes to add attributes to the generated image html. function add_lazyload_to_attachment_image($attr, $attachment) { if (strpos($attr['...
0
votes
1answer
24 views

Wordpress Featured Image meta box not showing

For some reason, the Featured Image box is not showing. I checked under the screen options and it is not showing. Since it is an MU site, I even checked under the main dashboard and still, I'm not ...
0
votes
1answer
24 views

Bootstrap Nav Walker Sub Menu Image

I would like to add images to each item of my sub menu. At the moment, i've added a custom css class to each menu item in the wordpress admin dashboard and add to my css a class like that : .menu-...
0
votes
1answer
20 views

How to trigger “wp_handle_upload_prefilter” filter when uploading an image programatically?

I am sanitizing uploaded SVG files with wp_handle_upload_prefilter, example: // Example code add_filter( 'wp_handle_upload_prefilter', function($file) { if ( $file['type'] === 'image/svg+xml' ) { ...
1
vote
1answer
26 views

How can I add a “data-pin-nopin” the featured image html?

I really want to prevent my featured images from being pinned. It seems so simple but I just don't have the knowledge to do it apprently. I found this but it doesn't work. I have divi theme if that ...
0
votes
1answer
18 views

Images with overlay

I have some images in a container that I would like to add an overlay and an icon. This doesn't work out of the box, but I found some code that helped: HTML: <div class="main"> <span ...
1
vote
0answers
34 views

Change WordPress image URLs via filter

I'm planning to create a wordpress plugin that will offload uploaded images to external website and show them from there. What I did so far: 1) Whenever a images gets uploaded, my custom functions ...
0
votes
1answer
25 views

How to get featured image of last post in a category?

I have the following code and want to add a selected featured image $arg = array( 'orderby' => 'date', 'number' => 10, ); $categories = get_categories($arg); ...
0
votes
1answer
39 views

How to add <li> element to the list of adjacent images?

I'm trying to create a html list of adjacent images (which are added by user, for example inside of a post content). Right now the output code looks like this <ul class="myclass"> <img src=""...
-1
votes
0answers
10 views

How to upload multiple images per single image so when clicked the muliple image pops up and display them in a gallery in wordpress

How to upload multiple images and are shown as a single image so when clicked the multiple images pop up and display them in a gallery in a page. i tried galleries and they work fine, but i have ...
0
votes
2answers
29 views

Looking for Image Slider that is based on default WP Media Library

For my WordPress site, I want to have a new solution for my image sliders. What I expect in the frontend is a slider like I have here: https://my-road.de/la-digue-guide/ But I am not happy with my ...
0
votes
0answers
33 views

woocommerce image product add a class and data-src attributes

I'm trying to add a class lazyload and the data-src attribute to my product images (woocommerce). I've look everywhere and couldn't find a solution for this. I've try with some plugins, like a3 ...
1
vote
1answer
24 views

Copying and pasting emoji in a wordpress post

There's this site that allows to copy and paste emoji's https://getemoji.com/ If I copy and paste from there into my posts will it work everywhere? Is it something like Font awesome? To use them I ...
0
votes
0answers
25 views

How can I add “alt” tag to <picture> element?

I am developing my own theme and for logo I use tag: <?php $image_url = get_theme_mod( 'header_logo_image_home', '' ); $image_id = attachment_url_to_postid($image_url ); ?> <...
0
votes
0answers
11 views

Local Elementor Development - Layout/Images sized differently in site preview

I'm new to WordPress development and have been enjoying playing about with Elementor making my first website, however I'm having some trouble with the display of images in a carousel. In the ...
0
votes
0answers
13 views

Block unauthenticated users from downloading png (or other data) files

How can I block users from direct downloading image files ( if they are not authenticated)? I want to enable download just when user pass authentication header (JWT). Currently I have JWT enabled for ...
0
votes
1answer
30 views

How to link Gutenberg Gallery images To Media file automatically?

Really I'm gonna be crazy :(, After searching for two months no one talking about this issue!! I'm stuck with that!! I mange a multi writers blog, and all our users uploading gallery images, and ...
0
votes
0answers
12 views

advanced wp columns plug in

With advanced WP columns plug in, the images in 3 column format are not aligned horizontally in different columns in the website, although in the edit version they are properly aligned.
0
votes
0answers
13 views

Survey plugin recommendation with symbol pictures?

I would like to ask this question again, and ask if maybe since 2012 there is change of plugin recommendation. What is a good plugin to do surveys for wordpress? Explanation: I have received many ...
0
votes
0answers
19 views

Ajax Issue for Add Media (Not All Images Load)

I'm working on a website that has over 300 images, using WordPress 5.1.1 with Classic Editor enabled. In Media Library, I can view all the images since it uses pagination. However, when I click Add ...
0
votes
1answer
18 views

Uploading images to custom table

I'm building my own WordPress plugin and I have a form where I put in some data. In addition, every entry has an image. Does anybody know how I can upload an image using the WordPress media selector?
0
votes
1answer
26 views

download link for uploaded images for wordpress

Is there a way have a download link so that users can directly download uploaded images on a wordpress theme? I have seen this guide for something like this http://fcontheweb.com/articles/...
0
votes
0answers
11 views

How to show default text below every image inside port

I am looking for an option to display default text(site name) below every post image. More like image caption, but t should be same text for all images and should appear automatically. As shown in the ...
0
votes
0answers
15 views

Responsive Images - Defining

I am relatively new to working on themes with WordPress. I am wondering how I can change the responsive looker for images based on the screen size. I want to be able to change the min-size with @media ...
0
votes
0answers
23 views

Automatica crop image in wordpress 5.1?

original image size 777x518 when uploading this image it shows only 575x416 in WordPress 5.1. It automatically crops this image.I want, When uploading an image it will display your original size. How ...
0
votes
1answer
9 views

I want to create a hero image with text and a button on my front page. How can I do this?

I want to create a hero image with text and a button on my front page. How can I do this? Here is a example of what I mean.
0
votes
1answer
18 views

Replace Home with image link inside custom header menu

What I want to achieve is a header menu like this: Right now, I have this: I am not far off. To get to where I am currently at, I followed these instructions and added some custom CSS. So I added ...
0
votes
0answers
9 views

Media Grid plugin Not lisitng allthe assigned images from the category

I am using a plugin for listing and searching images. I have created some categories and assigned some images to it, when I check in the front end it will display only some of the images, not all the ...
0
votes
0answers
31 views

Images uploaded via Gutenberg image block are cropped

I'm trying to add images to a post with the following work flow using the Gutenberg editor on version 5.1. Add an image block -> select upload -> select image. The image is uploaded to the page and ...