Skip to:
Content
Pages
Categories
Search
Top
Bottom

Edit Profile link inside Settings subnav


  • DAM
    Participant

    @damland

    Hello,

    how can I add Edit Profile link inside the Settings subnav (inside the settings page) without editing the template?

    Thanks!

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

  • danbp
    Participant

    @danbp

    hi @damland,

    it’s not exactly intended to move screens from one tab to another.
    For nav and subnav of the buddynav you can
    – add tabs
    – remove tabs
    Each menu item has (under other) a slug, a parent url and a screen function.
    In the present case, the Edit item slug belongs to the user profile.
    Something like: site-name/members/username/profile/edit/
    And the Profile Settings url is site-name/members/username/settings/

    This means if you remove Edit from one place to add it to the other, you will have two different url’s ! Something like site-name/members/username/settings/profile/edit/
    which will logicaly fire a 404 error on click.

    Also when you remove a nav item, it removes also the attached screen function.

    The trick to use is not to built out the Edit button – as this would remove the whole edit screen and trying to add to Settings, but simply to hide the button on the profile and add a copy of it on the Settings subnav.

    We use CSS to hide the button. Note that the menu css is the same for all items wherever the tab they are used.

    Get snippet here: https://gist.github.com/danbp/ea92923b1109ee1fcebd0741d861cda6

    Give that a try and tell us if it worked for you.


    DAM
    Participant

    @damland

    Thank you (y)


    meestergijs
    Participant

    @meestergijs

    The snippet gives me an error. How come? Could something be wrong/missing?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar