Unanswered Questions
3,298 questions with no upvoted or accepted answers
7
votes
2
answers
9k
views
why is translation not working on theme?
Background
I am using the theme Rookie from Sportpress.
I created a child theme.
Translation files are existing, especially german in my case.
Wordpress is set to german language.
The Problem
...
5
votes
1
answer
660
views
Disable plugins on cron and ajax page
I want to disable few wordpress plugins on my cron and an ajax page. I have already tried option_active_plugins filter but it's not working. I have checked and found most of the people say that ...
5
votes
1
answer
181
views
Pb with responsive image sizes in WP 4.4
I don't understand how to customize responsive sizes images in WP 4.4.1.
The only available hooks that I see are wp_calculate_image_srcset and wp_calculate_image_sizes, and neither has the named ...
5
votes
1
answer
2k
views
How to add image uploader to a custom widget?
I'v built a custom widget that will show some sport scores. Scores are added trough custom post. When i open new custom post(scores) i enter their team names, score, scores. Now i want to add an ...
5
votes
1
answer
597
views
Cropping, Re-sizing and Saving images from one folder to another folder in wordpress
I'm adding an upgrade for the WordPress plugin which I have developed ages ago. This plugin is just a product catalog, so just show products and their images. Products can have more than one images.
...
5
votes
1
answer
834
views
Looking for a way to load a function after customizer preview refresh complete
I need to load a callback function after a wp.customize.previewer.refresh(). I need this because I want to update a template position which is displayed with a custom hook in my theme and scroll the ...
4
votes
1
answer
201
views
@wordpress/create-block image url in css
how to include image URL to css "style.css" in custom block?
Both these not work:
background-image: url("images/imagename.png");
background-image: url("./images/imagename.png&...
4
votes
1
answer
858
views
How can I list only sites that use a particular theme or plugin?
I need to search through dozens of WordPress multisite (network enabled) installs for sites that use a particular plugin.
How can I list only sites that use a particular theme or plugin, preferably ...
4
votes
0
answers
76
views
Using Primary Color in Plugin Block
I'm developing a Gutenberg block, and I want the block to fit in as nicely as possible with the users site. So I'm trying to include as little styling of my own as possible, eg. allowing buttons to ...
4
votes
0
answers
280
views
Gutenberg Blocks - Attributes from comment delimiter or from HTML?
I wrote a custom block and am trying to better understand the interplay of the JavaScript and PHP on both front and back end regarding blocks.
Say I have some block that I want rendered dynamically. ...
4
votes
0
answers
1k
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 ...
4
votes
1
answer
6k
views
wordpress responsive image srcset not working
I'm trying use wordpress core responsive image feature but it's not adding srcset to image. Here is th my codes
I have a div w=370px h=280px now I added image sizes
if(function_exists('...
4
votes
1
answer
102
views
How does WordPress work out the srcsets?
WordPress gives some images srcset but not others how does it work this out, I cannot find anything documenting the topic. How does WordPress decide which images to give the srcset attributes to.
4
votes
3
answers
1k
views
Wordpress generating 404 on .mp4 file in theme folder
I am trying to load a full width video on my homepage. My situation is almost exactly like:
Video Background - (php & css) - generating 404 error on page load - Wordpress Theme File Structure ...
4
votes
4
answers
21k
views
alt, title tags not showing
I have added alt tags, title and description on all the images on my website but none are showing when I check them in the inspect element tool in chrome or firefox.
Here's a screenshot:
And here's ...