2023-07

DEV NOTE TIPS

CSS minify considerations: gulp-clean-css vs sass({outputStyle: ‘compressed’})

Comparing "gulp-clean-css" and "sass({outputStyle: 'compressed'})" as CSS minify methods, both have little effect on file size reduction and have the disadvantage of increasing build time.
DEV NOTE TIPS

How to eliminate gaps under inline elements

The gap that occurs below an inline element can be adjusted using the CSS vertical-align property. In particular, setting "vertical-align: bottom;" will position the element against the bottom edge of the parent element.
DEV NOTE TIPS

How to resolve port collision error when restarting nginx

If you get a port conflict error when restarting nginx, you can resolve this by checking the ports in use and stopping the conflicting process. Also, if nginx does not start properly, it may be necessary to delete the generated sock file.
DEV NOTE TIPS

Check for double-byte spaces in PHP code

The PHP error "Warning : Use of undefined constant" also occurs when double-byte spaces are included in the code. Check the code of the line where the error occurs and check for the presence of double-byte spaces.
DEV NOTE TIPS

Be careful using PHP functions with WP Super Cache

When using WP Super Cache, be careful when using PHP functions such as the is_mobile function and sessions. If these functions are cached, they may not work as expected.
DEV NOTE TIPS

About Wordmove Options

Learn more about Wordmove options. Understanding and properly using these options will make it easier to move your WordPress site between development and production environments.
DEV NOTE TIPS

Disable outputting <p> tags when outputting content in ACF’s WYSIWYG editor

This section explains how to disable the output of HTML tags when outputting content in ACF's WYSIWYG editor; by setting the argument of the get_field or the_sub_field function to false, the content is output as plain text without HTML tags.
DEV NOTE TIPS

Use Web Font Loader to speed up loading of Google Fonts

This section explains how to speed up the loading of Google Fonts using Web Font Loader, which improves display speed by loading fonts asynchronously, which affects the loading speed of the page.
DEV NOTE TIPS

How to speed up display speed by prioritizing local fonts in Noto Sans

This section explains how to speed up the display speed when using Google's Noto Sans fonts. We will show you how to prioritize the use of fonts in your local environment, which is especially effective on Android and Chrome.
DEV NOTE TIPS

Git: How to remove files added later to .gitignore from history

This section explains how to remove a specific file from the past commit history when versioning in Git, even if the file is later added to .gitignore.
DEV NOTE TIPS

WordPress permalink settings note: Behavior when %postname% is a date

A note on WordPress permalink settings. If you specify /information/%postname%/ for permalink settings and the %postname% is in date format, you may see the archive page instead of the expected post page.
DEV NOTE TIPS

Notes on the use of forward and backward matching of class attributes

Cautions for using forward and backward matching of class attributes. For elements with multiple class names, forward and backward matching attribute selectors may not work as expected.
DEV NOTE TIPS

How to access the local host from a virtual device in Android Studio

When developing with Android Virtual Device (AVD) in Android Studio, use http://10.0.2.2/ to access the local host of the development machine.
DEV NOTE TIPS

Notes on Bootstrap and Attribute Selectors

When using Bootstrap's grid system, care must be taken in the use of attribute selectors. In particular, using an attribute selector that targets all elements with class names beginning with "col" may cause styles to be applied to unintended elements.
DEV NOTE TIPS

How to solve the problem of crunching transitions in Bootstrap collapse.

This section describes the problem of choppy transitions in Bootstrap's collapse component and how to solve it.
DEV NOTE TIPS

How to allow horizontal scrolling and prevent vertical scrolling in Bootstrap’s nav tab

This section describes how to adjust the style of Bootstrap's nav tab to make the tab horizontally scrollable and prevent vertical scrolling at the same time.
DEV NOTE TIPS

Bootstrap’s nav tab: how to use the right tags

This section explains the importance of choosing the correct HTML tags for tab switching in Bootstrap's nav tab. In particular, it is recommended that the tab-content and tab-pane classes be used with the div tag.
DEV NOTE TIPS

How to reset the WordPress loop: example of using rewind_posts()

This section explains how to reset loops in WordPress and use multiple loops on the same page. This is mainly used when you want to display both navigation and content.
DEV NOTE TIPS

Breakpoint Events in JavaScript

This section explains how to implement event processing for each breakpoint in JavaScript. This allows you to perform specific processing at each breakpoint in a responsive design.
DEV NOTE TIPS

How to set up forwarding with or without www in Lollipop

When you set up a domain on Lollipop, a www subdomain is automatically created. This section explains how to set both of these to the same public folder.
DEV NOTE TIPS

How to set up video autoplay in iOS

This section explains how to set up automatic playback of videos on iOS devices. Three attributes are used: "playsinline," "muted," and "autoplay."
DEV NOTE TIPS

How to set up www and https

This section explains how to change from no www to "https://www.example.com" and from http to "https://example.com".
DEV NOTE TIPS

What to do if you cannot update wp-config.php with wp super cache

If you cannot update wp-config.php in WP Super Cache, try changing the wp-config.php permissions from 400 to 600.
DEV NOTE TIPS

How to make the waiting time for dns reflection as short as possible in your environment

You may be able to reduce the waiting time for DNS reflection by removing the DNS cache in Chrome or Mac, or by changing your DNS server to Google Public DNS.
DEV NOTE TIPS

500 error if .htpasswd path is wrong

If the path to the .htpasswd file is not set correctly, the web server will return an HTTP 500 error.
DEV NOTE TIPS

How to change subdirectory WordPress back to the root directory

This section explains how to restore a subdirectory WordPress back to the root directory.
DEV NOTE TIPS

How to draw a custom underline

Learn how to use CSS linear-gradient to draw a custom underline.
DEV NOTE TIPS

What to do if All-in-One WP Migration stops importing

Here's what to do if All-in-One WP Migration stops importing, which can be solved by uploading the file using FTP and restoring it.
DEV NOTE TIPS

How to get the current URL in PHP

Here is how to get the current URL in PHP. Specifically, we use the $_SERVER superglobal variable.
DEV NOTE TIPS

Display problems when using givewp and bogo plugins and their solutions

This section describes display problems and their solutions when using the givewp plugin and the bogo (multilingual) plugin. Specifically, you can solve the problem by rewriting it in .htaccess.