All Questions
1,852 questions
0
votes
0
answers
85
views
How to include images in the build of a Wordpress multi block plugin?
My WP plugin should show some (default) images in the font-end and editor UI. However, the URL generated with my code, refers to the build folder, while the images are not.
This is my structure:
...
0
votes
0
answers
88
views
Change Image In Wordpress by Click
My question is to create something in Wordpress.
I like to create a kind of advent calender. There are 25 small images an one big image. What i want to establish is when clicking one of the 25 small ...
1
vote
0
answers
28
views
Watermark for custom image size in WordPress
I use a watermark code for a WordPress theme. The code works fine, but it generates a watermark for every uploaded image. How can I modify my code to not watermark some image sizes?
I have an image ...
1
vote
0
answers
53
views
Embed image in text stripping curly brace { } characters from URL
We have our images and PDFs in a custom location on the server. The URL to them includes a folder with curly braces in the name, like this: /{folder-name}/. I understand that having a folder with ...
0
votes
0
answers
84
views
Wordpress images linking to empty image folders after migration from free wordpress.com site
I've been trying to migrate a free wordpress.com site to a Siteground hosted site. After migrating, the images are all linking to unviewable image folders instead of the images in the media library. ...
0
votes
0
answers
73
views
403 Forbidden only on some files is unexplainable
I am working on a simple script that is supposed to upload an image contained in a folder to a Wordpress setup, using the Wordpress REST API. The script is running on a local install of MAMP.
For some ...
2
votes
1
answer
125
views
WordPress wp_editor replaces " double quotes with “ in html tags (e.g. links, images or tables)
I'm facing an issue with the wp_editor (TinyMCE) in WordPress 6.5.3 (latest) where the quotes in my content are being replaced incorrectly. I'm using a custom shortcode (handled by WPCode) to display ...
0
votes
1
answer
71
views
Woocommerce wordpress responsive images
I wondered if it's possible to make the WooCommerce thumbnail images responsive. Currently, there is only one image size for the thumbnails, and I would like to add the src set attribute with further ...
0
votes
0
answers
48
views
How to display images in WordPress plugin created with vue.js
I'm trying to show the images called from the public and src/assets folders of a vue.js in a wordpress plugin.
here's the template file:
<template>
<div>
<a href="https://...
0
votes
0
answers
18
views
Internal Image in RSS
I have a content channel on my wordpress website that is shared with another website. However, when submitting a post with text and a featured image, along with internal photos, the target site is ...
0
votes
1
answer
113
views
How can I replace existing image with new one in wordpress in all posts?
I want to create a plugin for WordPress that converts all non-webp images into webp.
I have created a function that takes the file path as an argument and creates a new webp image from that file.
Now ...
0
votes
0
answers
31
views
WordPress Gallery thumbnail and single post issue after migrating to new host
After migrating to new host,i am facing a strange issue of Media image file's thumbnail while uploading to media gallery and also during editing or adding new blog post. The exact problem is as ...
0
votes
0
answers
41
views
Generate a page Gutenberg from a post , cannot display the image
I created a form to generate a page so I can edit with Gutenberg. I have 2 blocks, the text and the image. The problem is that I cannot display the image, I have the "alt" and the icon :
...
0
votes
0
answers
131
views
how can I check where wordpress media directory is set to upload files
I initially created my wordpress site in a directory named mysite.com/new , then copied the files to the root directory mysite.com/
Now images uploaded to mysite.com are still stored in mysite.com/...
0
votes
0
answers
53
views
If broken image redirect
I have this problem. How to edit this code to redirect to custom url instead of removing broken images?
The below code is builded to remove broken images on wordpress. I want to change the function to ...
0
votes
0
answers
43
views
Remove SRCSET for new images and past pages, and then delete all unused duplicate images created by wordpress and theme
I am faced with a major issue regarding the duplication of images in my uploads folder by both Wordpress and my theme, upwards of 10 different variants, as such my directory has ballooned to over 12 ...
0
votes
0
answers
35
views
Replacing background image with post's featured image in functions.php
I'm new to programming with a limited understanding of php (please be patient...).
I started a Wordpress blog with fifty50 theme that I'm trying to customize.
https://blog.moirarisenprints.com/
It has ...
0
votes
1
answer
57
views
How do I add a wiggle animation on layered images?
How do I add a wiggle animation on load to multiple images
The timeline attached will load 2 images and each have a little wiggle on load.
0
votes
1
answer
52
views
Put an image behind the title in a WP, WooCommerce "shop" page
I am probably missing something simple but...
I have a website created with WordPress that has a WooCommerce shop on it.
I want to put an image behind the "Shop" text in the banner on the ...
0
votes
0
answers
14
views
Background images and pop up related issue in live
I have developed a WordPress site in local successfully. But I am facing an issue while I uploaded WordPress all files from local host to server to go live. The issues which I have faced are following-...
0
votes
0
answers
41
views
PHP imagecopyresampled() function only working for JPG Images
I'm trying to make an API request with PHP, but I first have to scale an image that I get from a form to a 1024 by 1024 resolution.
This PHP script works perfectly with JPG files, but with PNG files ...
0
votes
0
answers
26
views
how can I show image description on a page
Wordpress 6.3
I have a image description in my media, I would show this in my normal side content.
Not in Posts.
For Posts I wrote this in my functions.php
add_action( 'post_thumbnail_html', '...
0
votes
2
answers
174
views
Where is the style for WordPress image class wp-image-####?
It seems whenever I insert an image to a WordPress post, it will add the following tag:
<img class="aligncenter wp-image-41880" src="https://www.datanumen.com/blogs/wp-content/...
0
votes
0
answers
37
views
Replace an Image in WordPress Posts
I tried to write a PHP snippet to replace an image in a WordPress post, based on the sample code https://developer.wordpress.org/reference/functions/wp_insert_attachment/ as below:
<?php
include &...
0
votes
1
answer
250
views
How can be written wp.element.createElement('img' into a registerBlockType?
I am looking for a solution to this question about WordPress Blocks.
I have a plugin that create a brand new block of an img tag.
I would know how to display it in the wp.blocks.registerBlockType ...
1
vote
0
answers
46
views
Display full size feature image in mobile version of site
I am using the Xtra WordPress theme. I have set a 1080p quality image as the banner image. The image is displayed correctly on desktop, but it is resized to 768*432 on mobile devices. I would like the ...
1
vote
1
answer
21
views
Image breaking in a wordpress custom site - php file and problems with root path
I am having trouble with a very simple footer - for some reason. While trying to load an Instagram icon in a footer, while editing a custom WordPress theme, everything seems okay and the image is ...
1
vote
0
answers
28
views
How can I reduce home page and post page thumbnail image when same thumbnail both side
I want to change home page and blog post page thumbnail size. I noticed thumbnail size generate through same class'large' on both pages.
html code is:
home page code
<img width="750" ...
-1
votes
1
answer
444
views
Wordpress Woocommerce how to delete image from file system when you delete it in a product
I have a site where an external API gets products for my Woocommerce shop, and the API sends many images for some products, so I manually go into a product post and delete some of these images.
How ...
0
votes
0
answers
41
views
How to add multiple images to an existing product with the WooCommerce API
I want to add one or more images to an existing product that already has images within WooCommerce.
function addImage($sku, $images){
global $woocommerce;
//Get id from sku
$products = $...
0
votes
2
answers
540
views
How can I prevent WordPress from generating inline style CSS?
I have a problem with WordPress generating image elements. When I place an image there's no problem, but when I need that image to be a link it adds 'width: 0 !important' as inline style. Is there a ...
1
vote
1
answer
80
views
Woocommerce Category Thumbnails in Loop
I'm trying to create a custom loop to display all the WooCommerce categories on my site. It should be fairly simple but I'm having issues getting hold of the category thumbnails. No matter what I do, ...
0
votes
1
answer
36
views
How do i download archive with static assets to my server and replace all "https://vuu.io" links with my own using wordpress?
WHITE-LABEL STATIC ASSETS
All links to static content in fax report are hardcoded to Vuu.io, but you may replace them with your own URL.
In this case you'll need to download archive with static assets ...
0
votes
1
answer
41
views
Featured image restrict size and the error message is not coming up
I want to restrict the user to set a featured image to 1000px x 450px which I have got something to remove the featured image if it is incorrect but the error message will not displaying and I want it ...
1
vote
1
answer
131
views
Prevent WooCommerce from loading full size images on frontend
I have a lot of uncompressed images in WooCommerce. Is there a way to force WooCommerce to serve medium or large sizes instead of full on the frontend?
-2
votes
1
answer
96
views
How to change the image size When it is in portrait ratio on WooCommerce
I want to set a code that changes the image size of my product image, in case it is a photograph in portrait mode, to a smaller size so that the image fits better on the page. Images in landscape mode ...
0
votes
1
answer
430
views
How to get full size image url from Wordpress sized image with PHP
After seening to similar questions Get all images from wordpress post and Get all images attached to any post
I have come up with two codes. The problem is that one uses wp_get_attachment_image_url ...
0
votes
3
answers
556
views
How to insert image using wordpress and store it inside upload folder?
i tried file upload code but i am confuse where to place image name and that i have given inside input type file.
i comment out this code
// $file_name = pathinfo($tmp_name ,PATHINFO_FILENAME)....
-2
votes
1
answer
2k
views
Woocommerce import image from external URl
For products in the shop client sent images as a URL, its an external URL, below is the one for reference
https://lilac.ecb.com.au/otherimage?product=NBF88SY.1&i=1
I've added this URL in CSV file ...
1
vote
1
answer
613
views
How to change or disable the rendered size for WooCommerce images
I have a problem in WooCommerce with the images that I upload. They have a poor quality, so I want to disable or change the rendering size.
I tried to change the setting in WooCommerce and WordPress ...
0
votes
1
answer
42
views
Mysql query to dermine image use frequency in Wordpress?
Would it be possible to build a mysql query to determine the frequency of an image being used in Wordpress?
So that it extracts and counts different image hrefs from the wp_posts?
0
votes
1
answer
90
views
Change background image when button is clicked
The background image of my landing needs to be changed when the button is clicked.
I´m a newbie on wordpress and don´t know how the background image on the landing could be changed.
I know that there ...
1
vote
1
answer
102
views
Wordpress background image when I click on a button
I have a little question for my Wordpress page. Is there any possibility to change the background image on the landing page when I click on a button in my navigation bar? The button lets me already ...
1
vote
0
answers
33
views
CSS: Flexible featured image is problematic in smaller sizes
// Edit: solved, there was an additional "margin-bottom: 18px" in my code that came from a different part of the stylesheet. In smaller sizes this margin started to show up gradually until ...
0
votes
1
answer
40
views
Wordpress : Too Many Images Versions
I have a small problem which is probably at noob level.
I haven't noticed how extremely one of my wordpress sites is cluttering up my webserver.
It's an eCommerce site and for every image uploaded. It ...
0
votes
2
answers
35
views
How to make a check in the wordpress library: did the user or the function upload the image to the admin panel?
I have the website on wordpress and function replace_uploaded_image in functions.php which uploads images from external url and transforms their original sizes to thumbnail sizes.
But I wouldn't like ...
1
vote
0
answers
35
views
How can I add an image to the "real place" theme in wordpress?
How can I add an image to the "real place" theme in WordPress?
I thought of adding the following code in functions.php:
<img src="<?php echo get_template_directory_uri(); ?>/wp-...
0
votes
0
answers
403
views
Add "alt" tag to images wordpress
I'm trying to solve a situation by creating a code that checks and automatically adds alt tag from the name.
It works partially, that is, it does what it has to do, but whatever I do, I end up ...
0
votes
1
answer
813
views
Wordpress - Images not showing up in Media Library
for some reason, WordPress images not showing up in Media Library since yesterday moreover when I try to upload an image is getting the error "An error occurred in the upload. Please try again ...
0
votes
1
answer
98
views
Customise wordpress theme search.php to include product image
I want my search results to show an image of the product. Currently the search results only show a text link. My wordpress theme is Intuition Pro and the website is https://heritagecountrypottery.com. ...