Tagged: 

Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #783419

    Hello,

    i want to translate the site in two languages. I want to buy the plugin WPML. To created the pages i used the Advanced Layout Editor.

    The question: When i will installed and activated WPML and i want to translate the pages, that pages holds the Elements(Layout, Content, Media) of Enfold Advanced Layout Editor?

    I need a quick respone beacause i want to buy today WPML.

    Thank you

    #783473

    Hey!

    Yes, they do. You can simply duplicate a page with all ALB elements and translate them. For more information, please see – http://kriesi.at/documentation/enfold/how-to-translate-pages-built-with-enfold-using-wpml/

    Best regards,
    Yigit

    #783484

    Hello Yigit,

    Thank your for your help and quick answer. Please don’t close the thread for some days, because maybe i need further help.

    Thank you

    #783492

    Hi,

    Sure! We will keep the thread on hold. You can simply reply to this thread to reopen it and if you have any other questions or issues, please feel free to start a new thread :)

    Best regards,
    Yigit

    #786278

    Hello,

    i buy and install WPML. I put some code on function.php that provided by support WPML. Now i want to put that code <?php echo iso_list_menu('strtoupper'); ?> on header.php.
    The question is. Where can i put that code <?php echo iso_list_menu('strtoupper'); ?> to display on the right of the nav menu items. See the link * on homepage where display now the languages switch (at the top left) and see where i want to display that **.

    Also, how manipulated the text of languages. Because the EN, i want to make lowercase En and the EL to change to Gr.

    Thank you

    #786365

    Hi,

    Please add following code to Functions.php file in Appearance > Editor

    add_action( 'ava_after_main_menu', 'enfold_customization_header_widget_area_ls' );
    function enfold_customization_header_widget_area_ls() {
    	echo iso_list_menu('strtoupper');
    }

    Then you can add following code to Quick CSS in Enfold theme options under General Styling tab and adjust its position

    #header .widget {
      left: 50%;
      padding-top: 0;
      position: absolute;
      top: 0;
      transform: translate(-50%);
      z-index: 999;
    }

    Best regards,
    Yigit

    #786480

    Hello Yigit,

    the PHP code worked perfect, but the CSS doesn’t work. How can i manipulated that anchor elements?

    Thank you

    #786483

    Hi,
    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,
    Yigit

    #786508

    Hello,

    I will make some changes yet and if i don’t manage that i’ll send you the credentials.

    Thank you for your help.

    #786511

    Hi,

    Sure, we will keep the thread open and wait to hear from you.
    Thread will be on hold, you can reopen it by simply replying to this thread :)

    Best regards,
    Yigit

    #787009

    Hello Yigit,

    Take a look to my site that is on homepage (1) . I want to change color to white and put the languages text to right of nav menu see the image (2). Also, when scroll down on sticky header to change color see the image (3)

    Another question. Now the languages is set (4). When i select the Gr language change the position and set (5). Why?

    Thank you.

    -Don’t deactivated plugins

    #787549

    Hi,

    Thank you for the info. Please add this css code.

    .html_header_transparency #header_main .inner-container a {
        color: #ffffff;
    }

    Best regards,
    Ismael

    #787663

    Hello Ismael,

    it works but when scroll down the sticky header has nav menu and language code white color. We want on scroll down sticky header to have grey color.

    Thank you.

    #788305

    Hi,

    I see. Please replace the css code with the following.

    .html_header_transparency .av_header_transparency #header_main .inner-container a {
        color: #ffffff;
    }

    Best regards,
    Ismael

    #788314

    Hello Ismael,

    that work perfect to change the color of language code, but for position? How can move that on right of nav menu? How can manipulate that without affects the others elements of nav menu?

    Thank you

    #788349

    Hi,

    Please remove the previous modifications including the filter in the functions.php file and the css modifications then follow these instructions.

    1.) Add the following filters and script in the functions.php file:

    function ava_custom_script_fix(){
    ?>
    <script>
    (function($){
    	function d() {
    			$('.avia_wpml_language_switch li').each(function() {
    				 $(this).insertAfter('.av-main-nav > li:last-child');
    				 $(this).not('.menu-item').find('a').css('padding-right', 0);
    			});
    
    			$('.avia_wpml_language_switch').remove();
    
    			$('.language_el').find('.language_code').text('gr');
    	}
    
    	d();
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_fix');
    
    add_filter('avf_wpml_language_switcher_position', 'avf_change_wpml_language_switcher_position', $position);
    function avf_change_wpml_language_switcher_position($position) {
    	$position = 'sub_menu'; // sub_menu
    	return $position;
    }
    
    add_action('after_setup_theme','avia_remove_main_menu_flags');
    function avia_remove_main_menu_flags(){
    	remove_filter( 'wp_nav_menu_items', 'avia_append_lang_flags', 20, 2 );
    	remove_filter( 'avf_fallback_menu_items', 'avia_append_lang_flags', 20, 2 );
    	remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10);
    	add_action( 'ava_inside_main_menu', 'avia_wpml_language_switch', 10);
    }

    2.) In the Quick CSS field, add this code.

    .av-main-nav > li > a .language_flag, .av-main-nav > li > a .language_native, .av-main-nav > li > a .language_translated {
        display: none;
    }
    
    .av-main-nav > li > a .language_code {
        text-transform: uppercase;
        border-right: 1px solid #58595b;
        padding-right: 10px;
    }
    
    .av-main-nav > li:last-child > a .language_code {
        border-right: none;
        padding-right: 0;
    }

    We need to do this because the first modification place the language switcher outside the main menu container.

    Best regards,
    Ismael

    #788400

    Hello Ismael,

    thank you very much, that works, but need three modification.

    1. When you refresh or load a page see the flags in a white page, on positions above aboutus *.
    2. We want to change the character | to white color before scroll down and when scroll down to have that color which has now **.
    3. We want to make the language code text capitalize and change the second language code ***.

    Thank you very much for your help.

    #788788

    Hi,

    Please replace the css codes with the following:

    .language_flag {
        opacity: 0;
    }
    
    .av-main-nav > li > a .language_flag, .av-main-nav > li > a .language_native, .av-main-nav > li > a .language_translated {
        display: none;
    }
    
    .av-main-nav > li > a .language_code {
        text-transform: uppercase;
        padding-right: 10px;
    }
    
    .av_header_transparency .av-main-nav > li > a .language_code {
        border-right: 1px solid #ffffff;
    }
    
    .av_header_transparency .av-main-nav > li:last-child > a .language_code {
        border-right: none;
        padding-right: 0;
    }

    Best regards,
    Ismael

    #793223

    Hello Ismael,

    that’s work great. Thank you for your help.

    Last question. How can i change the language code name EL to Gr ? I want to change only the label of the language which display on menu.

    Thank you very much.

    #794603

    Hi,

    We modified the script a bit. Please try it again.

    Best regards,
    Ismael

    #794732

    Hello Ismael,

    works like a charm. You are great.

    Thank you very much for your help.

    #795761

    Hi,

    Glad we could help. Please rate us in themeforest if you have the time. Thank you! :)

    Best regards,
    Ismael

Viewing 22 posts - 1 through 22 (of 22 total)
  • The topic ‘WPML hold the Advanced Layout Editor all Elements’ is closed to new replies.