PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

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

s2Member Plugin. A Membership plugin for WordPress®.

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

Postby wbconnected » July 24th, 2011, 8:19 pm

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
Last edited by wbconnected on July 26th, 2011, 7:09 am, edited 1 time in total.
User avatar
wbconnected
Registered User
Registered User
 
Posts: 7
Joined: June 2, 2011

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

Postby Cristián Lávaque » July 26th, 2011, 12:04 am

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/
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

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

Postby wbconnected » July 26th, 2011, 6:59 am

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
User avatar
wbconnected
Registered User
Registered User
 
Posts: 7
Joined: June 2, 2011

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

Postby Bruce C » July 26th, 2011, 12:45 pm

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!
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

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

Postby wbconnected » July 26th, 2011, 7:07 pm

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.
User avatar
wbconnected
Registered User
Registered User
 
Posts: 7
Joined: June 2, 2011

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

Postby Cristián Lávaque » July 27th, 2011, 2:01 am

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!
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 3 guests

cron