Home Forums Basel support forum Languages on Mobile menu

Languages on Mobile menu

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #2165

    graphe
    Participant

    Hello,

    I’m trying to put in the right column links language. I’m trying with functions.php of my child theme, right after the registration area.

    I have the language code, but I don’t know exactly how to enter the arrays.

    The code of WPML is:
    <?php do_action('wpml_add_language_selector'); ?>

    I spoke with WPML support but do not quite know where to place

    And the code of functions is:

    add_filter( 'basel_header_configuration', 'basel_custom_header_configuration', 1, 1 );
    
    function basel_custom_header_configuration() {
    
    		return array(
    			'container' => array(
    				'wrapp-header' => array(
    					'logo',
    					'widget_area',
    					'right-column' => array(
    						'header_links',
    						'search',
    						'wishlist',
    						'cart',
    						'mobile_icon',
    						
    					)
    					
    				)
    			),
    			'navigation-wrap' => array(
    				'container' => array(
    					'main_nav'
    				)
    			)
    		);
    
    }
    
    ?>
    

    I don’t know how to do that, can you help me?

    Thanks!

    #2168

    Artem Temos
    Keymaster

    Hello,

    You just need to create a new “block function” for the header. The final code will be

    add_filter( 'basel_header_configuration', 'basel_custom_header_configuration', 1, 1 );
    
    function basel_custom_header_configuration() {
    
    		return array(
    			'container' => array(
    				'wrapp-header' => array(
    					'logo',
    					'widget_area',
    					'right-column' => array(
    						'header_links',
    						'search',
    						'wishlist',
    						'cart',
    						'mobile_icon',
    						'wpml_languages',
    						
    					)
    					
    				)
    			),
    			'navigation-wrap' => array(
    				'container' => array(
    					'main_nav'
    				)
    			)
    		);
    
    }
    
    function basel_header_block_wpml_languages() {
    do_action('wpml_add_language_selector');
    }
    #2172

    graphe
    Participant

    Perfect!

    Thank you!

    #2174

    Artem Temos
    Keymaster

    You are welcome 🙂

    #3578

    vilif
    Participant

    Hi,

    I’ve a similar problem, I need to keep the language menu for mobile devices. Right now I have the language menu in the top bar menu, I’ve been trying to modify de CSS media queries to keep displaying the menu on mobile but I couldn’t find a solution.

    Any advice?

    Thank you

    #3584

    Artem Temos
    Keymaster

    Hi,

    Here is a code snippet that you may place into the Custom CSS section for mobile devices to show your language menu on phones

    .topbar-wrapp .topbar-menu {
        display: block;
    }

    Regards

    #3585

    vilif
    Participant

    Great!!

    Thank you very much!!

    #3586

    Artem Temos
    Keymaster

    You are welcome, we are always happy to help you, write us when you have any difficulties or issues with our theme.

    And we would be glad if you will rate our theme with 5 stars on themeforest in case you are satisfied with our theme and customer service http://themeforest.net/downloads

    Thank you in advance 🙂

    #3615

    vilif
    Participant

    It’s done!!

    #3626

    Artem Temos
    Keymaster

    Thank you very much @vilif, it is very important for us!

    #4305

    lxyamerica
    Participant

    what is the name of this guy in header configuration?

    https://i.imgsafe.org/23eb846908.jpg

    function basel_custom_header_configuration() {
    
    }
    #4306

    lxyamerica
    Participant

    sorry wrong place

    #4313

    Artem Temos
    Keymaster

    We have answered your question in other topic.

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