[resolved] Login in Header of page (6 posts)

  1. CreativeFedora
    Posted 2 years ago #

    Is it possible to display the login form in the header without using the widget? And if yes how can it be customized?

    The widget is bulky and would like to display the username and password input fields side by side with minimal text.


  2. CreativeFedora
    Posted 2 years ago #

    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?

  3. Chad Butler
    Plugin Author

    Posted 2 years ago #

    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:

  4. CreativeFedora
    Posted 2 years ago #

    This is the link to the custom stylesheet that I'm using: http://www.hectorarandadesigns.com/sandbox/opinion/wp-content/themes/theme-opinion-search/wp-members.css

    I followed the walk through on this page: http://rocketgeek.com/tips-and-tricks/setting-up-a-custom-wp-members-stylesheet/

    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?

  5. Chad Butler
    Plugin Author

    Posted 2 years ago #

    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.

  6. CreativeFedora
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.