Archived topic
Primary navigation Menu not RTL when swith to arabic
11 replies · Started by makaouif on February 23, 2020
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?
I add the function to the function.php in Edit Theme of GeneratePress Child theme.
You find below screenshot of my Dashboard.
https://drive.google.com/open?id=1EKPg5MFY_BnH8aYoSp7-OgdeRzE7sgWz
i hope to find sulotion
regards
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 :)