Disabling Gutenberg

Learn, share, and connect around europe dataset solutions.
Post Reply
rakhirhif8963
Posts: 560
Joined: Mon Dec 23, 2024 3:16 am

Disabling Gutenberg

Post by rakhirhif8963 »

Disable REST API
In short, REST API is a very cool thing that allows you to exchange data between your site and any other services and applications. For example, you can make an application for your phone that will manage your site, receive information from it and change it. This functionality is usually used for large projects to connect different APIs with each other, if you, like many, are hearing about this for the first time, then feel free to insert the lines below into your function.php file:

Disable Emoji
Outdated functionality that replaces text emoticons with WordPress's own Emoji package, since now all browsers have native support, there is no need for WordPress Emoji, by disabling them your site will thank you, since now it will not load unnecessary scripts and images when loading pages.

Cancel srcset
This is an attribute of the <img srcset> tag — a hong kong gamblers phone number data for the standard src . In scrset, several image URLs are specified and the condition under which it should be used, most often this is the screen resolution, that is, different images will be displayed at different resolutions. In WordPress, this type of image output is enabled by default, but the downside is the larger amount of html code, since srcset often contains quite a lot of text. I recommend everyone to disable this function, with these lines:

Gutenberg is a visual editor for WordPress pages and posts, quite convenient and flexible and constantly receiving updates, but there are a couple of critical disadvantages.

Along with convenience, we get extra style sheets and scripts, which negatively affects loading.
I am for the uniqueness of the code, and in the case of any visual editors, be it Elementor or Visual Composer, we get pages that will be similar to a million others on the Internet both visually and in HTML code.
The code below will completely disable Gutenberg, which is enabled by default in WordPress, and will also remove the styles and scripts that it uses:

Disabling XML-RPC
XML Remote Procedure Call — used to connect to the site via the WordPress mobile app, also notifies the owner that a link to his site has been left somewhere. If you do not use this functionality, then feel free to disable it:

Add to the .htaccess file :


Disable JQuery Migrate
The built - in jquery file migrate .min.js was previously used for compatibility between jQuery versions. There is little need to use this file now.



Remove WP version from .css and .js files
Initially, for all scripts and styles, WordPress writes ?ver=X.XX at the end of each included file. For security and code purity purposes, it is advisable to remove these parameters. This is done with the following code:
Post Reply