• Resolved Victor Gon?alves

    (@vichenri)


    Is possible to change language menu item link only in home to send to a specific url?

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

    (@alexgff)

    You can use filter ‘wpglobus_nav_menu_objects’
    To get more info please check file
    wpglobus\includes\class-wpglobus.php:1832

    Thread Starter Victor Gon?alves

    (@vichenri)

    Sorry, but how do I do this?

    Thread Starter Victor Gon?alves

    (@vichenri)

    Let me explain it better, I need it just at home when selecting the language, go to the “company” page for example

    Plugin Contributor Alex Gor

    (@alexgff)

    To change WPGlobus menu items you need to use filter
    ‘wpglobus_menu_items’.
    How to make it ?

    
    add_filter( 'wpglobus_menu_items', 'filter__wpglobus_menu_items' );
    function filter__wpglobus_menu_items( $wpglobus_menu_items, $languages ) {
    
      // your code here
    
      return $wpglobus_menu_items;
    }
    
    • This reply was modified 8 years ago by Alex Gor.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Link different only in Home’ is closed to new replies.