Boost Your WordPress 6.7 Site with These Handy Code Snippets

Published on November 15, 2024 by Sebastian Moran in MainWP Blog under Tips & Tricks
Heads up: This page may include affiliate links. Read the full disclaimer.

The final WordPress core major release of 2024 was released on the 12th of November, version 6.7. WordPress 6.7 introduces several new features, including improved block patterns, enhanced design tools, and refined site editing capabilities. It offers an updated UI with better accessibility, block alignment options, and a reorganized site editor for streamlined navigation. Additionally, it enhances performance through optimized loading speeds, especially for media-heavy sites. More customization features and advanced block controls, like padding, are available, providing greater design flexibility for users.

These code snippets should be helpful to control the new features added in version 6.7.

Disable HEIC Automatic Image Conversion

You can use the following code snippet to disable automatic image conversion of HEIC image to JPG.

Loading Translations from the Theme Folder

Due to a change in WordPress 6.7 for translations being loaded from a central location, some themes without the change might not be loading the translations if they were stored within the theme folder. This code snippet can be used until WordPress 6.7.1 is released.

Disable auto sizes for lazy loaded images

In WordPress 6.7, auto sizes for lazy-loaded images were added. If this feature is causes issues on the site, then this code snippet can be used.

MainWP offers a solid, easy-to-use extension that saves and activates code snippets to all connected sites from the MainWP Dashboard. The MainWP Code Snippets Extension is a powerful tool for managing code snippets across multiple WordPress sites, especially with the new features in WordPress 6.7. It allows you to add, edit, and control custom code snippets from a single dashboard, streamlining code management without manual updates on each site. This extension is handy for efficiently implementing WordPress 6.7’s advanced features and customizations, as it supports PHP, HTML, and JavaScript snippets. With MainWP, you can test and deploy changes safely, ensuring all sites are consistently updated and optimized, saving time and reducing the risk of coding errors.

Useful links

https://wordpress.org/news/2024/11/rollins/

https://make.wordpress.org/core/2024/10/23/wordpress-6-7-field-guide/

https://make.wordpress.org/core/tag/dev-notes-6-7/

https://make.wordpress.org/core/2024/08/15/automatic-conversion-of-heic-images-to-jpeg-in-wordpress-6-7/

https://make.wordpress.org/core/2024/10/21/i18n-improvements-6-7/

https://wordpress.org/support/topic/translations-are-no-longer-loading-from-the-theme-folder/

https://make.wordpress.org/core/2024/10/18/auto-sizes-for-lazy-loaded-images-in-wordpress-6-7/

https://core.trac.wordpress.org/ticket/62413

https://core.trac.wordpress.org/ticket/61847

https://mainwp.com/extension/code-snippets/

https://kb.mainwp.com/docs/code-snippets-extension/

https://managers.mainwp.com/t/disable-automatic-conversion-of-heic-images-to-jpeg-in-wordpress-6-7/9615

https://managers.mainwp.com/t/load-translations-from-the-active-theme-folder-in-wordpress-6-7/9620

https://managers.mainwp.com/t/disable-auto-sizes-to-lazy-loading-images-to-wordpress-6-7/9627

Share

Manage Unlimited WordPress Sites from One Dashboard!

  • Privacy-first, Open Source, Self-hosted
  • Easy Client Management
  • 15+ & 30 + Premium Add-ons
  • Bulk Plugins & Themes Management
Get Pro Now

Categories

Recent Posts

Search MainWP.com

[searchwp_form id="1"]