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™

Login Widget on Page

s2Member Plugin. A Membership plugin for WordPress®.

Login Widget on Page

Postby Michelle » January 30th, 2012, 3:15 pm

HI!

I'm having trouble getting the login widget on a page and I'd love some help!

It works beautifully in the sidebar, but several of the members-only pages use a template with no sidebar, so I'd like to add the widget to the bottom of these pages.

I'm using this code:
<?php echo s2member_pro_login_widget(); ?>
with PHP Execution plugin installed.

I have tried placing this in several places - directly at the bottom of the page, or in one of the Genesis Simple Hooks like genesis_after_content. Sometimes all I get is the code displaying as text, or I get the widget but it is at the top of the page over the top of other page content.

Any advice on how to get this to work would be greatly appreciated!
User avatar
Michelle
Registered User
Registered User
 
Posts: 18
Joined: November 29, 2011

Re: Login Widget on Page

Postby Cristián Lávaque » January 31st, 2012, 4:29 am

If you get the code displayed as text, you probably used Visual editor, which breaks the PHP code, stick to the HTML editor in WordPress when you use code.

If the widget appears in the wrong place, it may be due to your CSS. You'll have to customize it to get it shown properly. The widget will have IDs in its HTML elements, making it easy to select them for styling.

I hope that helps. :)
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: No registered users and 0 guests

cron