Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Alex Gor

    (@alexgff)

    You can use filter ‘wpglobus_nav_menu_objects’ – allows to modify the localized URLs in menu, if any tweaking is required

    Hello,

    Should the “Custom Links” in menus be localized automatically?

    My site is showing the same url regardless of locale.

    (Perhaps it has to do with the fact that I’m on my local machine and in a subfolder)

    Thanks.

    • This reply was modified 8 years, 5 months ago by theyuv. Reason: added sentence
    Plugin Contributor Alex Gor

    (@alexgff)

    > Should the “Custom Links” in menus be localized automatically?
    No. If the link is external.
    You can use filter ‘wpglobus_nav_menu_objects’.

    Thanks.

    Hello,

    Any ideas why the method WPGlobus_Utils::localize_url isn’t working for me?

    I pass in some url like “/some-page”: WPGlobus_Utils::localize_url('some-page'); but the output remains the some (ie: “/some-page”).

    The locale (say, “fr”) is not prepended to the url.

    Thanks

    • This reply was modified 8 years, 5 months ago by theyuv. Reason: formatting
    • This reply was modified 8 years, 5 months ago by theyuv. Reason: clarification
    Plugin Contributor Alex Gor

    (@alexgff)

    Try

    
    WPGlobus_Utils::localize_url('https://mysite.com/some-page');
    

    Doesn’t work.
    It works for you?
    FYI: I’m on local development environment.

    Plugin Contributor Alex Gor

    (@alexgff)

    Yes. It works on my local&production site.
    BTW any external URLs will not be localized.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Custom Links different URL per language’ is closed to new replies.