Page 1 of 1

Login Widget on Page

PostPosted: January 30th, 2012, 3:15 pm
by Michelle
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!

Re: Login Widget on Page

PostPosted: January 31st, 2012, 4:29 am
by Cristián Lávaque
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. :)