Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to create a Profile Button in the Navigation?

  • Avatar of eddygordo
    eddygordo
    Participant

    @eddygordo

    Hello,

    i want to create an Profile Button in the Navigation when i Click on the Button i will be redict to my profile.
    I have Created an Site which names ”Profile” but when i click on it the site is only white, no profile.
    What can i do?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    Add dynammic profile link to custom menu by adding filter in functions.php file http://pastebin.com/HSpJNLyV

    Avatar of eddygordo
    eddygordo
    Participant

    @eddygordo

    Hello, thank you but this code dont work :S
    Here this is showing when i add this code to the Functions.php :
    // Filter wp_nav_menu() to add profile link add_filter( ‘wp_nav_menu_items’, ‘my_nav_menu_profile_link’ ); function my_nav_menu_profile_link($menu) { if (!is_user_logged_in()) return $menu; else $profilelink = ‘
    ‘ . __(‘Visit your Awesome Profile’) . ‘
    ‘; $menu = $menu . $profilelink; return $menu; }

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.