Site logo

Archived topic

Primary navigation Menu not RTL when swith to arabic

11 replies · Started by makaouif on February 23, 2020

Viewing posts 1–12 of 12

Hi guys,

I try to align primary navigation menu to the right (when swith to arabic) but the menu still in left.

i'm using
WPML
Theme child
GP Premium

Hi there,

Have you tried the Navigation Alignment option in Customize > Layout > Primary Navigation?

Let me know :)

Thank you for your answer Tom

Yes i tried the Navigation Alignment option

Switching between Arabic & English (logo and body pages function well RTL)
The problem with menu bar, fixed in the left side and when i Switching to arabic stay in the left side.

Any help pls

Can you try this function?:

add_filter( 'option_generate_settings', function( $settings ) {
    if ( is_rtl() ) {
        $settings['nav_alignment_setting'] = 'right';
    }

    return $settings;
} );

Let me know :)

:( nothing happened

Strange, how did you add the function?

wait wait it function well .....
can you confirm that how i added it, it's right way?

Yup that looks correct to me :)

it function well ….. Thank you

No problem :)

This archived topic is closed to new replies.