Skip Navigation


Topic Tags: Page Builders

Overview of the issue

If you are using a page builder in your website, you may notice that if you add some emojis in a block of content, that block won’t be available for translation in the Advanced Translation Editor or Classic Translation Editor.


This issue appears because of a table collation conflict. If your server supports the collation utf8mb4_general_ci, you can follow this procedure after making a full backup of your site:

  1. Open your theme’s functions.php file.
  2. Add this code:
    // Notice admin_init - will only run in backend
    add_action('admin_init', function() {
    	global $wpdb;
    	$mytables=$wpdb->get_results("SHOW TABLES");
    	foreach ($mytables as $mytable)
    	    foreach ($mytable as $t) 
    	        maybe_convert_table_to_utf8mb4( $t );
  3. Visit any page in your site’s backend.
  4. Remove the code.

Your database tables collation should be utf8mb4_general_ci now, and the content will be available for translation.

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>