Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #757433

    I am using WPML “A different domain per language” and Enfold child theme.
    In native language enfold theme is working correctly but in translation the theme style is completely broken…
    Anyone knows how to fix this?

    #757434

    This tip from WPML has NOT helped me…

    When the Enfold theme is active and “A different domain per language” option is chosen, the theme styles are not being loaded.

    Workaround

    Add the following code to the Enfold theme functions.php file:

    function wpml_enfold_fix_resources_uri() {
    remove_filter (‘stylesheet_directory_uri’, ‘avia_wpml_correct_domain_in_url’);
    remove_filter (‘template_directory_uri’, ‘avia_wpml_correct_domain_in_url’);
    }
    add_action( ‘init’, ‘wpml_enfold_fix_resources_uri’ );

    #758183

    Hi @frul,

    Thanks for sharing that, so I’m guessing that solved the problem?

    Best regards,
    Rikard

    #758305

    Hi Rikard,

    no, this solution did NOT worked.
    Maybe you have any other idea?

    #760657

    Hi,

    make sure to use newest WP and theme version (Enfold v4.0.2). Deactivate any other plugins but WPML to check if one is causing this issue.

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Best regards,
    Andy

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.