Everything you need to get started with Blocksy Theme and Companion

Divi Builder

At the moment there’s a know issue with Divi Builder, caused by the fact that Divi Builder doesn’t support additional attributes on the <body> tag, which Blocksy uses. This issue can be temporarily fixed by adding this piece of JavaScript to your site. This will ensure all the relevant attributes are getting carried over.

Copy and paste this code in your child theme’s functions.php file or add it with the help third party plugin like Code Snippets.

add_action('wp_enqueue_scripts', function () {
	wp_add_inline_script('ct-scripts', "
      jQuery(document).one('ETDOMContentLoaded', function (t) {
        setTimeout(() => {
          const frame = document.querySelector('.et-core-frame');
          const innerBody = frame.contentDocument.querySelector('body');

          [...document.body.attributes].map(({ name, value }) => {
            innerBody.setAttribute(name, value);
        }, 1000);
}, 60);
Not the solution you are looking for?

Please check other articles or open a support ticket.