Home Forums WoodMart support forum Plugin string translation with your theme FOR THE THIRD TIME

Plugin string translation with your theme FOR THE THIRD TIME

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #689476

    soporte_web
    Participant

    https://xtemos.com/forums/topic/plugin-string-translation-with-your-theme-again/ re opening this topic, with another product.

    If I disable the plugin WPML string translation, the product loads.
    If I change to another theme, the product loads.

    I have tried disabling all plugins an re-enabling them, but didn’t worked.

    #689622

    Artem Temos
    Keymaster

    Hi,

    Could you please send us a link to your website where we can see this issue?

    Kind Regards

    #689628

    soporte_web
    Participant

    ??

    You have it in the private content

    #689642

    Artem Temos
    Keymaster

    We don’t see the problem on the page you provided via the Private content field.

    #689644

    soporte_web
    Participant

    I have attached again the product url

    SCREENSHOT WITH YOUR THEME: https://prnt.sc/HUcalP1O-hos

    SCREENSHOT WITHOUT YOUR THEME: https://prnt.sc/H_A2_aQ71MhH

    https://xtemos.com/forums/topic/plugin-string-translation-with-your-theme-again/ re opening this topic, with another product.

    If I disable the plugin WPML string translation, the product loads.
    If I change to another theme, the product loads.

    I have tried disabling all plugins an re-enabling them, but didn’t worked.

    #689712

    Artem Temos
    Keymaster

    Hello,

    We have investigated this issue and identified the reason why your content is not displaying properly — it’s related to the WPML plugin.

    While researching similar cases, we came across a thread on the official WPML forum that describes an identical problem:
    https://wpml.org/es/forums/topic/wpml-activado-error-en-pagina-de-producto-con-algunas-variaciones-de-productos/

    In that thread, a user shared a solution that actually works and resolves the issue. However, it’s unclear why the WPML team has not yet implemented an official fix.

    In this case, we recommend reaching out to WPML technical support and asking them to revisit the situation and include an official fix in a future plugin update.

    In the meantime, to ensure your site remains stable, we can provide you with a temporary custom code snippet that will fix the issue until WPML releases an update.

    add_action( 'wp', function() {
        $hook_name = 'elementor/frontend/the_content';
    
        global $wp_filter;
    
        if ( isset( $wp_filter[ $hook_name ] ) ) {
            foreach ( $wp_filter[ $hook_name ]->callbacks as $priority => $callbacks ) {
                foreach ( $callbacks as $key => $callback ) {
                    if (
                        is_array( $callback['function'] )
                        && is_object( $callback['function'][0] )
                        && method_exists( $callback['function'][0], 'duplicate_css_class_with_original_id' )
                    ) {
                        $object = $callback['function'][0];
    
                        if ( get_class( $object ) === 'WPML_Elementor_Adjust_Global_Widget_ID' ) {
                            remove_action( $hook_name, [ $object, 'duplicate_css_class_with_original_id' ], $priority );
                        }
                    }
                }
            }
        }
    }, 1000 );

    Kind Regards

    #689714

    soporte_web
    Participant

    Thanks

    #689729

    Artem Temos
    Keymaster

    You are always welcome. Feel free to contact us if you have any further questions.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Plugin string translation with your theme FOR THE THIRD TIME’ is closed to new replies.