Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter CreativeFedora

    (@creativefedora)

    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

    (@cbutlerjr)

    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:
    https://rocketgeek.com/plugins/wp-members/users-guide/customizing-forms/

    Thread Starter CreativeFedora

    (@creativefedora)

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

    I followed the walk through on this page: https://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?

    Plugin Author Chad Butler

    (@cbutlerjr)

    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.

    Thread Starter CreativeFedora

    (@creativefedora)

    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.