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…
How to
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…
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:
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…
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…
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…