TIPS

DEV NOTE TIPS

How to resolve import errors in phpMyAdmin

As a solution to the import error "#1214 - The used table type doesn't support FULLTEXT indexes" in phpMyAdmin, you can change the table type specification in the SQL file from "ENGINE=InnoDB" to "ENGINE= MyISAM" from "ENGINE=InnoDB". If an error occurs during the process, delete the table that failed to import and re-import it.
DEV NOTE TIPS

How to remove “Month:”, “Category:”, etc. on archive pages in WordPress

This section explains how to remove prefixes such as "Month:" and "Category:" that appear on WordPress archive pages. This can be done by customizing the title format using the get_the_archive_title filter hook.
DEV NOTE TIPS

WordPress says “Update failed. The reply is not the correct JSON response.” How to deal with the error

WordPress says "Update failed. The response is not a valid JSON response." error in WordPress. It is mainly caused by a .htaccess problem, which can be resolved by re-saving the permalink settings.
DEV NOTE TIPS

How to resolve Warning: main(__DIR__/wp-load.php) error in older versions of PHP

Describes how to resolve Warning: main(__DIR__/wp-load.php) error due to old PHP version. It mainly explains how to specify the PHP version using .htaccess.
DEV NOTE TIPS

Problem with max_num_pages being 0 and its solution

This page describes a problem with max_num_pages being 0 in WordPress pagination and its solution. The main cause is when the WP_Query parameter 'no_found_rows' is set to true.
DEV NOTE TIPS

How to solve the problem of PHP outputting newline codes as they are

This section describes a problem with PHP outputting line feed codes as they are and how to resolve it. Enclose the newline code in double quotation marks to properly reflect the newline.
DEV NOTE TIPS

Use PHP variables in JavaScript with wp_localize_script

WordPress allows PHP variables to be used in JavaScript by using the wp_localize_script function.
DEV NOTE TIPS

How to solve the problem of the right side of the negative margin not working

The issue of the right side of the negative margin not working in the Instagram feed plugin and other plugins can be solved by setting "width: auto !important;".
DEV NOTE TIPS

How to deal with “Namespace prefix xlink for href on image is not defined” in SVG

If you get the "Namespace prefix xlink for href on image is not defined" error in SVG, you can resolve this by adding the xmlns:xlink attribute to the SVG tag.
DEV NOTE TIPS

How to locate the error when you get a 500 error in PHP

When you get a 500 error in PHP, you can locate the error by turning on the display_errors setting in php.ini.
DEV NOTE TIPS

What to do when WordPress cannot start due to plugin errors

If WordPress is unable to start due to a plugin error, this can be temporarily addressed by using FTP or other means to rename the problematic plugin folder name.
DEV NOTE TIPS

How to get the post status from the post object of a custom post

When retrieving the post status from a custom post object, use the get_post_status function to specify the post ID.
DEV NOTE TIPS

Workaround for an error that occurs when specifying only one animation property in Web Animation API’s Polyfill

If specifying only one animation property in the Web Animation API Polyfill results in an error, you can resolve this by specifying two properties.
DEV NOTE TIPS

What to do when pointer-events: none; does not work in anchor tags

If pointer-events: none; does not work in the anchor tag, specifying display: block; or display: inline-block; may solve the problem.
DEV NOTE TIPS

Importing CSS with Sass

When importing CSS in Sass, if the file name includes the extension, it is imported as a URL; if the extension is omitted, it is imported inline.
DEV NOTE TIPS

File mount for building Nginx and PHP-FPM with Docker

When building Nginx and PHP-FPM environments with Docker, the necessary files must be mounted on both Nginx and PHP-FPM containers.
DEV NOTE TIPS

How to configure Git not to auto-format line breaks and space differences

To solve the problem of meaningless newlines and space differences in code in Git, we will show you how to unify the editor's automatic formatting settings.
DEV NOTE TIPS

How to use Git rm to deal with “Argument list too long” error

You may receive an "Argument list too long" error message when trying to do a Git rm. This occurs when the list of arguments exceeds the system limit. The solution is to use a command that searches for files that match the pattern specified in the gitignore file and removes them from the cache with the git rm command.
DEV NOTE TIPS

How to deal with node-sass errors due to Node.js version

If you are using a particular version of Node.js, node-sass may cause errors. This problem can be resolved using the npm rebuild node-sass command. Downgrading the Node version may also be one solution.
DEV NOTE TIPS

SVG compatibility issues with Google’s Native Lazy plugin

Compatibility problems may occur between Google's Native Lazy plugin and SVG plugin in some cases. To solve this problem, you can add class="skip-lazy" to SVG elements.
DEV NOTE TIPS

How to deal with the problem of Bootstrap Modal not showing up (a tag)

If the Bootstrap modal does not appear, it could be a conflict with the smooth scrolling JavaScript, while the problem could also be due to the a tag being treated as an inline element.
DEV NOTE TIPS

Using conf.d in Apache VirtualHosts

If you place configuration files in the Apache conf.d directory, Apache will automatically read them. This is especially useful for VirtualHost configurations.
DEV NOTE TIPS

SEO methods to make your site easier to find on Google

Here are some basic SEO guidelines to make your site easier to find on Google. Proper use of these can improve your site's search engine ranking.
DEV NOTE TIPS

How to deal with Safari display issues on Mac and iOS when using Docker’s Nginx for WebP support

When using Docker's Nginx to handle WebP, there may be a problem with images not displaying in Safari on Mac or iOS. To work around this issue, comment out the WebP section from the Nginx configuration.
DEV NOTE TIPS

What to do when EWWW cannot be optimized

If you are unable to optimize images in EWWW, this may be due to file or directory permission issues. To resolve this issue, change the permissions on the EWWW working directory.
DEV NOTE TIPS

Solution to missing visudo command in Bash

If you cannot find the visudo command in your Linux shell, the sudo package may not be installed. Updating the package and installing sudo will solve the problem.
DEV NOTE TIPS

Capacity Reduction Techniques in WEBP Conversion of PNG in EWWW

Changing EWWW Image Optimizer's PNG to WEBP conversion from lossless to lossy will greatly increase the capacity reduction effect.
DEV NOTE TIPS

Color profile problems and countermeasures during WEBP conversion

If the color profile is not embedded when converting to WEBP format, the image may not display on Mac or iOS. Also, EWWW Image Optimizer must be set to not remove metadata.
DEV NOTE TIPS

Scrollbar rattling problem and solution in Windows

This section describes the scrollbar rattling problem in Windows and its solution.
DEV NOTE TIPS

Management of the Opening Playback Flag

This article describes how to manage the opening replay flag in a website or web application. In particular, we recommend using sessionStorage and localStorage to avoid problems caused by fbcache.