Home Forums Basel support forum HEADER BANNER TRANSLATION

HEADER BANNER TRANSLATION

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #129488

    sttefaaa
    Participant

    Hi.
    I hope this is not a silly question, but maybe you can help me figure this out – how to WPML translate the Header Banner..? I have set it as HTML block and tried different ways to translate it but nothing seems to work..

    #129545

    Hello,

    Please find the file wpml-config.xml in the Basel theme folder, replace the whole code with this one:

    <wpml-config>
        <custom-types>
            <custom-type translate="1">cms_block</custom-type>
            <custom-type translate="1">portfolio</custom-type>
            <custom-type translate="0">basel_sidebar</custom-type>
        </custom-types>   
        <taxonomies>
            <taxonomy translate="1">categories</taxonomy>
            <taxonomy translate="1">project-cat</taxonomy>
            <taxonomy translate="1">tag</taxonomy>
        </taxonomies>  
        <admin-texts>
            <key name="basel_options">
                <key name="logo" />
                <key name="logo-white" />
                <key name="logo-sticky" />
                <key name="logo_width" />
                <key name="header_text" />
                <key name="header_area" />
                <key name="popup_text" />
                <key name="reg_text" />
                <key name="login_text" />
                <key name="cookies_text" />
                <key name="empty_cart_text" />
                <key name="copyrights" />
                <key name="copyrights2" />
                <key name="prefooter_area" />
                <key name="additional_tab_title" />
                <key name="additional_tab_text" />
                <key name="content_before_add_to_cart" />
                <key name="content_after_add_to_cart" />
    			<key name="empty_compare_text" />
    			<key name="reg_title" />
    			<key name="login_title" />
    			<key name="header_banner_shortcode" />
            </key>
        </admin-texts>  
        <custom-fields>
            <custom-field action="translate" label="Extra content">_basel_extra_content</custom-field>
            <custom-field action="translate" label="Custom tab title">_basel_product_custom_tab_title</custom-field>
            <custom-field action="translate" label="Custom tab content">_basel_product_custom_tab_content</custom-field>
        </custom-fields>  
    </wpml-config>

    Then, create tow different HTML blocks for different languages and insert in the header banner translation in the Strings translation http://prntscr.com/o4q7on

    Best Regards

    #129643

    sttefaaa
    Participant

    Thank you! Everything works now. 🙂

    #129652

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

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

The topic ‘HEADER BANNER TRANSLATION’ is closed to new replies.