Support » Plugin: WP-Members Membership Plugin » Login in Header of page

Viewing 5 replies - 1 through 5 (of 5 total)
  • On a related note on customizing the coloring of the login widget I’ve specified the stylesheet (wp-members.css) in the custom stylesheet box in the settings, uploaded the file to my theme folder, and it’s linked properly, but when I make changes none of the them appear.

    Any ideas why the changes are going through?

    Plugin Author Chad Butler


    To have a login in the page header you would need to put together a login form in your theme’s header.

    As far as not loading your custom CSS, make sure you are setting the full URL to the location of the custom stylesheet in the setting for Custom Stylesheet. I would suggest browsing to whatever URL you put in there to make sure you can load the stylesheet in your browser. If browsing to the stylesheet URL in your browser doesn’t display the stylesheet, then it isn’t correct.

    Also, just to clarify, selecting one of the preloaded stylesheets in the dropdown list will not load your custom stylesheet. These are just the preloaded ones.

    You could also use wp_enqueue_scripts to load the custom stylesheet directly.

    There is more information on all of this in the user guide:

    This is the link to the custom stylesheet that I’m using:

    I followed the walk through on this page:

    I made a few tweaks, for instance color is set to red, and the color hasn’t changed.

    As for adding the login form in the header. Do I use the form login code wp-member utilizes? I found the function/code within the wp-members-sidebar.php, would that be a starting point?

    Plugin Author Chad Butler


    As for code, you shouldn’t need to actually code anything new in terms of processing a login. You just need to pass the same parameters that the sidebar or body login forms pass.

    I came across the filter wpmem_sidebar_form and used that to completely change the layout of the login in form. Pretty damn cool!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Login in Header of page’ is closed to new replies.