[Resolved] Primary navigation Menu not RTL when swith to arabic

Home Forums Support [Resolved] Primary navigation Menu not RTL when swith to arabic

Home Forums Support Primary navigation Menu not RTL when swith to arabic

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1174142
    makaouif

    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

    #1174528
    Tom
    Lead Developer
    Lead Developer

    Hi there,

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

    Let me know πŸ™‚

    #1174555
    makaouif

    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.

    #1174722
    makaouif

    Any help pls

    #1174769
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #1174880
    makaouif

    πŸ™ nothing happened

    #1175456
    Tom
    Lead Developer
    Lead Developer

    Strange, how did you add the function?

    #1175500
    makaouif

    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

    #1175580
    makaouif

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

    #1175764
    Leo
    Staff
    Customer Support

    Yup that looks correct to me πŸ™‚

    #1432334
    makaouif

    it function well ….. Thank you

    #1433018
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.