How to

How to close the Magnific Popup after submitting a form

When writing your own form of communication and using the Magnific Popup library, a situation can arise when the communication form is successfully sent, but the popup remains unclosed and disturbs the site visitor. It is much more natural if the form displays a message about successful sending and closes itself after 2-3 seconds. You…
Read more

How to disable the ability to change files in the WordPress admin

By default, the WordPress admin has the ability to modify theme files or plugins in Appearance → Editor. But there may be situations where you need to show the admin to a customer or editor. If you don’t want any of them to be able to change your files, you should add this line to…
Read more

How to add noindex to headings without posts in WordPress

You may have a situation where you have created several headings, but have not yet added posts to them. You probably don’t want empty categories without posts to be indexed by search engines. You can use wp_robots filter to add noindex to the robots meta tag:
Read more

How to change robots.txt in a WordPress multisite

WordPress dynamically creates robots.txt. To overwrite it during a normal, non-multisite installation, you can simply upload a static robots.txt file to the server. In a multi-site installation, this will overwrite the robots.txt file for all sites, which is not always the desired result. In this post, we will discuss how you can change the robots.txt…
Read more

How to reset permanent links on all sites in the WordPress network (Multisite)

Quite often we encounter a situation when something breaks the structure of permanent links on all sites in the WordPress network (Multisite installation), for example, when a plugin activation error occurs throughout the network. On one site from the network, this is easy enough to fix by manually going into Settings → Permalinks, which will…
Read more

How to include styles and scripts in a child WordPress theme?

Dozens of articles have already been written on this topic, but the topic continues to be discussed, and in chat rooms and forums, people ask questions and face problems over and over again. Let’s try to figure out how to correctly connect styles and scripts in WordPress using examples. Let’s start in order. There is…
Read more