Page 1 of 1

Trying to add an "Account" link in the menu bar but can't

PostPosted: July 24th, 2011, 8:19 pm
by wbconnected
Hello, I'm trying to add a link to the members login welcome page in the menu bar of the Twenty Eleven WP Theme. I need it to function the same way the "Account" link works in S2Clean, and the widgets ( it automatically directs members to there respective login page).

I tried using the same address to no avail (http://wholisticbeautyconnected.com/my- ... come-page-%%current_user_level%%). Of course this will work directly in a page but I need it in the menu bar as an html link, Is it possible?

Thank You,
Beverly

Re: Trying to add an "Account" link in the menu bar but can'

PostPosted: July 26th, 2011, 12:04 am
by Cristián Lávaque
Hi Beverly.

s2Member doesn't affect the admin top-bar. There may be other plugins that let you edit the bar. Maybe this? https://wordpress.org/extend/plugins/wo ... -improved/

Re: Trying to add an "Account" link in the menu bar but can'

PostPosted: July 26th, 2011, 6:59 am
by wbconnected
It's not the "wp admin bar" I'm trying to change. I want to add a link to "members login pages" from the "menu bar" that contains my site pages, I'm using the Twenty Eleven theme. My problem is one of two things: I do not have the right code to make a link, or it cannot be done (probably and hopefully not the case).

I can add an "My Account" link directly in the pages and post by using this code: <a href="<?php echo S2MEMBER_LOGIN_WELCOME_PAGE_URL; ?>">My Account</a>

However, that does not translated as a link in the themes menu bar, my guess is because it's not an actual html path. How can I do it?

Thank you,
Beverly

Re: Trying to add an "Account" link in the menu bar but can'

PostPosted: July 26th, 2011, 12:45 pm
by Bruce C
Hi wbconnected!

If I understand correctly, you want a link to "Account" which would only show up if you're logged in? If that's the case, it's probably got something to do with how the menu bar in your theme is set up. s2Clean (since it's integrated with s2Member) must have that hard-coded in. So,you could go in and code it into your theme, which I'm not totally sure how to do. Or, you can show the Account page and have it automatically redirect to the Login Welcome Page if the person is logged in.

Hope that helped in some way!

Re: Trying to add an "Account" link in the menu bar but can'

PostPosted: July 26th, 2011, 7:07 pm
by wbconnected
I don't mind if the link shows all the time, I just need it to route members to their pages. My theme does allow me to add links to the menu bar -- the problem is I don't know the code, or the right path.

Thanks.

Re: Trying to add an "Account" link in the menu bar but can'

PostPosted: July 27th, 2011, 2:01 am
by Cristián Lávaque
I'm not very familiar with the new TwentyEleven theme yet.

Could you please show me a screenshot of the menu you're talking about and another one of the admin area where you're trying to create the new link?

Thanks!