WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
[resolved] Responsiveness (5 posts)

  1. respectyoda
    Member
    Posted 8 months ago #

    The forms are not responsive so could you make them responsive or shall I help you in this regard?

    http://wordpress.org/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 8 months ago #

    You're probably using one of the older stylesheets (or an older version of the plugin). The 2012 (plugin default) and the 2013 stylesheets are responsive, as are several of the Genesis stylesheets that are available to premium support members. The older three stylesheets (kubrick, 2010, & 2011) are not responsive. I might update them in the future, but they are used less and less.

    Also, the forms are extremely flexible in that it is easy to load a custom stylesheet (which is best anyway, because that's how you get things integrated with your theme). See the User Guide section on Customizing Forms for more info on loading a custom stylesheet:
    http://rocketgeek.com/plugins/wp-members/users-guide/customizing-forms/

  3. respectyoda
    Member
    Posted 8 months ago #

    Ah I see. I am using my own stylesheet to modify certain elements for responsiveness. However, some elements don't have a class and I don't want to add a class to the elements defined in the core plugin in the event the core files are updated/upgraded.

  4. Chad Butler
    Member
    Plugin Author

    Posted 8 months ago #

    I think most every element (there are a few small exceptions) has something you can define. The entire form is wrapped in the ID wpmem_login or wpmem_reg, depending on the form.

    For things that you might need to add to, there are some filters for the form that you can use. The entire string of generated html for the login form and the registration form are each passed through a filter, so you can slip in wrappers that way. See this page of the User Guide for a list of all filter and action hooks: http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/ The wpmem_register_form filter allows you to filter the html string generated for the form before it is sent to the browser.

    You are correct in not changing core files. That is a very bad practice. That is why the filter hooks are there - so you can customize almost every element of the plugin in a way that doesn't limit your ability to update the plugin. Think of it as building plugins for the plugin.

    Between custom stylesheets and filtering the forms, you can bend and shape things pretty extensively using the framework. But I'll let you in on some inside info: it will be even more flexible in the upcoming versions.

    The 2.9 project is going to rebuild the way the forms are constructed. This is going to add some new feature elements, but will also open the door to some additional flexibility in the framework with the way forms can be manipulated. This will pave the way for 3.0.

    Essentially, there will be more action hooks and filter hooks during the process of building the form. Currently there are a couple, but they are mainly for text strings like headings and such. Additional hooks during the form build will allow hooking into the process so that if you want to do things very precise, it will be an easier way of doing it rather than filtering the entire form after it is built.

  5. respectyoda
    Member
    Posted 8 months ago #

    What an informative post. I am glad the plugin will be more flexible when it comes to customizing it with the next few upcoming versions.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.