Skip Navigation

[Resolved] How to get rid of toolsetCommonEs styleToHead()

This thread is resolved. Here is a description of the problem and solution.

Problem:

The user is experiencing issues with Toolset and Elementor, where toolsetCommonEs.styleToHead() appears when displaying WYSIWYG fields. The provided code only removes the first instance of the issue.

Solution:

Use this Javascript code:

jQuery(document).ready(function( $ ) {
    $(".elementor-element").each(function() {
        $(this).html($(this).html().replace('toolsetCommonEs.styleToHead()',""));
    });
    $(".elementor-widget-container").each(function() {
        $(this).html($(this).html().replace('toolsetCommonEs.styleToHead()',""));
    });    
});

Relevant Documentation:

https://toolset.com/forums/topic/cant-get-rid-of-toolsetcommones-styletohead-in-woocommerce-tab/

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 4 replies, has 2 voices.

Last updated by gabrielB 1 year, 8 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2571967

Hi,

I'm using Toolset with Elementor and I keep getting toolsetCommonEs.styleToHead() when displaying WYSIWYG fields.

I've looked through the support articles and sorted out most of my problem.

I found this article which helped: https://toolset.com/forums/topic/cant-get-rid-of-toolsetcommones-styletohead-in-woocommerce-tab/

When I use the below code, however, it only gets rid of the first instance.

jQuery(document).ready(function( $ ) {
    $(".elementor-element").each(function() {
        $(this).html($(this).html().replace('toolsetCommonEs.styleToHead()',""));
    });
});

Can you help, please?

Thanks,

Gabriel

#2572007

Christopher Amirian
Supporter

Languages: English (English )

Hi Gabriel,

May I have the link to the page that contain the issue so that I can check if there is a solution that I can find for your instance?

Thanks.

#2572039

Here you go

hidden link

#2572547

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Would you please change the script you added to:

jQuery(document).ready(function( $ ) {
    $(".elementor-element").each(function() {
        $(this).html($(this).html().replace('toolsetCommonEs.styleToHead()',""));
    });
    $(".elementor-widget-container").each(function() {
        $(this).html($(this).html().replace('toolsetCommonEs.styleToHead()',""));
    });    
});

See if it works.

Thanks.

#2573335

My issue is resolved now, but you guys should really look into fixing this.