How to unlock file renaming for a page builder?

By default, we block the image files renamer for Page Builder users. Some of them use complex encodings that can cause errors or break your images when renaming a file within WordPress.

However, you can still enable this feature by adding this WordPress filter to your WordPress theme’s functions.php file:

add_filter('imageseo_authorize_page_builder', '__return_true');

How To Add A Filter In WordPress Theme’s Functions.php?

The file can be edited in three ways. The recommended method is to use FTP so that you can edit the file with your favorite code editor. But if you prefer, you can also edit functions.php through the File Manager or through the Admin panel of WordPress.

Through FTP

  • Start your favorite FTP client and connect to the hosting server.
  • Go to the “/wp-content/themes” folder.
  • Open your active theme and locate functions.php file.
  • Download the functions.php file and open it with your favorite HTML editor.
  • Add this line of code at the end of the file: add_filter(‘imageseo_authorize_page_builder’, ‘__return_true’);
  • Save the file and upload it back

Using Your Hosting File Manager

  • Log into your hosting account and find the File Manager app.
  • The file can be found under the “/wp-content/themes/” folder.
  • Open the file and add this line of code at the end: add_filter(‘imageseo_authorize_page_builder’, ‘__return_true’);
  • Save the file

Using WordPress Admin Panel

functions.php in WordPress
  • Navigate to “Appearance > Editor” in your WordPress admin panel.
  • Locate the functions.php file and modify its content by adding this line of code at the end: add_filter(‘imageseo_authorize_page_builder’, ‘__return_true’);
  • Save your changes.

Be Careful: Prepare A Backup

Renaming or moving file is always tricky and can on rare occasions brake your images. Before triggering a bulk, try to rename your file in the library, then check if the images you renamed are available on the related pages. If so, you can bulk optimize the filenames.

Bulking alt texts is always safe.

Our SEO Tool will grow your traffic

Why have you neglected images search engine optimization for so long ?

Try it for free