- JavaScript
How to prevent all embedded videos from downloading
This is a method to prevent all embedded videos on the management site from being downloaded. const video = document.querySelectorAll('video'); for (let i = 0; i < video.length; i++) { video.item(i).setAttribute('controlsList', 'nodownlo... - WordPress
Amelia in Local cannot be used due to Ajax error
As the title says, I get a 500 error and can't use it. Since it runs without problems on the server, it seems to be limited to Local. I was able to fix it by doing the following. 【1:Check the database port number】 Select the [Database]... - WordPress
Ending the theme’s functions.php with ?> Can result in an error
The following message was displayed on the WordPress login screen, and I encountered a situation where I could not log in. ERROR: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support fo... - WordPress
The theme “Sydney” does not show bbPress search results
While using the theme [Sydney], I found that the search function in the [bbPress] forum was not working. Even if I search in the forum, the articles posted normally will be searched. Now that we have resolved it, follow the steps below. ... - WordPress
Fetch All-in-One Event Calendar data in a loop
It is a method to retrieve the information of each event by looping the event information of "All-in-One Event Calendar". We have confirmed the operation with the latest version 2.6.8 at the time of writing. I picked up mainly the ones t... - WordPress
Automatically play WordPress header videos on iPhone
Some WordPress themes automatically play the video in the header. However, in the case of iPhone, there are conditions for automatic playback. Unfortunately, automatic playback is not possible with the playback method that uses the stand... - WordPress
How to stop JavaScript and CSS outside of Contact Form 7 pages
If you use Contact Form 7, the JavaScript and CSS used by Contact Form 7 will be loaded on all pages. Using JavaScript or CSS related to pages that do not use Contact Form 7 will slow down the speed, so I would like to avoid it. Limit th... - WordPress
Change cURL to wp_remote_post
Note that I changed the code written in cURL to wp_remote_post. cURL $params = [ 'xxx' => 'aaa' 'yyy' => 'bbb', 'zzz' => 'ccc', ]; $headers = [ 'contentType: application/json; charset=utf-8' ]; $curl = curl_init(); curl_setopt( $curl, CU... - WordPress
Remove decimal points from Events Manager prices
The displayed price of Events Manager is also given after the decimal point. In Japan, the decimal point is not used, so delete it. Add the code below to your theme's functions.php etc. function zipang_em_get_currency_formatted( $formatt...
12