Title: Request Seperate Message Box CSS Classes
Last modified: August 20, 2016

---

# Request Seperate Message Box CSS Classes

 *  Resolved [James Anderson Jr.](https://wordpress.org/support/users/jamesandersonjr/)
 * (@jamesandersonjr)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/request-seperate-message-box-css-classes/)
 * Hi Chad,
 * I have just installed wp-members on my WP blog. It was in a really rough form
   when I got it, but I have since added some polish (though I couldn’t fix everything
   wrong with it).
 * My Request is this: Could you please separate the messages by CSS class, such
   as informative messages, error messages, and success messages? I would like to
   make my success messages green, my info either blue or grey, and my error messages
   red (Yes I’m a UI Design freak, and want things to look their best). Here is 
   a screenshot of how all my messages look now: [http://goo.gl/k9F1r](http://goo.gl/k9F1r)
 * …and, incase it matters, here is my home-brewed theme (though you have to view
   advertisement to download it, to give me credit for my work.): [http://ow.ly/fz5Dc](http://ow.ly/fz5Dc)
 * I want to know why [by default] there is SO much space around the messages. Is
   it something I’ve done wrong in the CSS?
 * Also, where is the “English” language files that I can change the registration
   form title from “New Users Registration” to “New User Registration” (which makes
   a lot more sense).
 * Please, message me back soon and let me know if my inquiries will be addressed
   in a later version of the plugin.
 * Thanks,
    -James A.
 * [http://wordpress.org/extend/plugins/wp-members/](http://wordpress.org/extend/plugins/wp-members/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/request-seperate-message-box-css-classes/#post-3218756)
 * > It was in a really rough form when I got it, but I have since added some polish(
   > though I couldn’t fix everything wrong with it).
 * Really? That’s how you start off your request – by insulting my work? You are
   making a subjective statement as if it were something objective, which it is 
   not.
 * >  Could you please separate the messages by CSS class
 * If I do end up doing something in this area, it will probably be adding a filter
   hook for the class. There is currently a filter hook for the dialog message, 
   but this filters the content of the message only and not the full html string.(
   BTW, there is a filter hook for the login failed message dialog that does include
   the string, so you could filter the class for that. See: [http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_login_failed/](http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_login_failed/))
 * > I want to know why [by default] there is SO much space around the messages.
 * The original (default) was developed when TwentyTen was the default theme, so
   it probably looked good to me in that theme. But again, you are making a statement
   about something subjective.
 * > Also, where is the “English” language files that I can change the registration
   > form title from “New Users Registration” to “New User Registration” (which 
   > makes a lot more sense).
 * It’s ironic that you make a grammatical error in your statement regarding grammar(“
   where is… the files”). You can filter this with the wpmem_register_heading filter(
   see: [http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_register_heading/](http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_register_heading/)).
 * > Please, message me back soon and let me know if my inquiries will be addressed
   > in a later version of the plugin.
 * You set the tone for this post with an insulting statement, did not even one 
   single time mention anything good about the plugin (which you received free of
   charge), and then you ask for a quick response? Consider yourself lucky to get
   any response.
 *  Thread Starter [James Anderson Jr.](https://wordpress.org/support/users/jamesandersonjr/)
 * (@jamesandersonjr)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/request-seperate-message-box-css-classes/#post-3218757)
 * > Really? That’s how you start off your request – by insulting my work? You are
   > making a subjective statement as if it were something objective, which it is
   > not.
 * I’m very sorry chad for that statement. But please understand, many people that
   know me well say that I sometimes speak before thinking twice, so please know
   that that was my fault, and not yours (*puts foot in mouth).
 * Also what I meant was that I had to make some styling adjustments to fit well
   with my theme ([Neuro Pro -by Cyberchimps](http://cyberchimps.com/neuropro/)).
   The design as it was looked good especially for the default WP theme, but did
   not match the theme I was using. I think you did a good job on the plugin mechanics
   as well.
 * >  You set the tone for this post with an insulting statement, did not even one
   > single time mention anything good about the plugin (which you received free
   > of charge), and then you ask for a quick response? Consider yourself lucky 
   > to get any response.
 * Again I apologize Chad. I’m beginning to understand why many wise people say 
   the tough can set things ablaze! Please, accept my sincere apologies. 🙁
 *  Thread Starter [James Anderson Jr.](https://wordpress.org/support/users/jamesandersonjr/)
 * (@jamesandersonjr)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/request-seperate-message-box-css-classes/#post-3218758)
 * > If I do end up doing something in this area, it will probably be adding a filter
   > hook for the class. There is currently a filter hook for the dialog message,
   > but this filters the content of the message only and not the full html string.(
   > BTW, there is a filter hook for the login failed message dialog that does include
   > the string, so you could filter the class for that. See: [http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_login_failed/](http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_login_failed/))
 * Please, excuse my ignorance, but I don’t know WP lingo yet, as I’m just now becoming
   a WP developer. All I know, and am well-versed in, is CSS, HTML,DHTML, JavaScript,
   PHP and a little bit of JQuery. As such I don’t know what the “filter hook” is.
   What I do now to style is use my [Firebug](http://getfirebug.com/) to isolate
   and target an element (whatever it may be), and put in the needed style into 
   either the external style sheet as “!important” or use my WP themes means to 
   edited in inline style in all or only some of my pages.
 *  Thread Starter [James Anderson Jr.](https://wordpress.org/support/users/jamesandersonjr/)
 * (@jamesandersonjr)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/request-seperate-message-box-css-classes/#post-3218759)
 * Hey Chad,
 * Please tell me what you think of this theme (Please, note it has been updated
   with new css, if you’ve visited it at the above link before, and there still 
   will be brief advertisement to give credit for my work meant not really for you
   but for curious onlookers): _[ redacted, we don’t do ad links here ]_
    And I 
   hope you’re still not upset with me, because I have a new request:
 * Could you provide a textbox field in WP-Admin -> Settings -> WP-members -> Options
   where you can customize a page where users are first taken when they first login,
   because right now there is no way to set that in options (if there is please 
   let me know how).
 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/request-seperate-message-box-css-classes/#post-3218764)
 * No problem – I’m over it…
 * A good place to start is with hooks. Hooks are places in the code that you can“
   hook in to” with your customization. Some are filters, which allow you to filter
   or change something programmatically, and some are actions, which allow you to
   do some action. This is what makes WordPress itself so extensible.
 * WP-Members uses the same API as WordPress so that you can customize your use 
   of it without making changes to the plugin code. Making changes to the code is
   bad because you would have to do that anytime you upgrade.
 * If you want to customize where the user is directed when they first login, you
   would do that by hooking into wpmem_login_redirect (see: [http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_login_redirect/](http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/wpmem_login_redirect/)).
   That could be something as simple as redirecting users to a specific page when
   they login, or something more complicated like redirecting first time users to
   the change password dialog so the change their password right away (see: [http://rocketgeek.com/filter-hooks/redirect-a-user-on-first-login/](http://rocketgeek.com/filter-hooks/redirect-a-user-on-first-login/)).
   What you do with that is only really limited by your knowledge of PHP.
    There
   is a list of hooks for the WP-Members plugin here: [http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/](http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/)
 * As I mentioned originally, there is not filter hook for the message class, except
   in the case of the login failed message. But I will probably be adding on there
   as I think that’s a good idea. I’m always looking for places that new hooks make
   sense.
 * As far as customizing the CSS, this is probably a good place to start:
    [http://rocketgeek.com/plugins/wp-members/users-guide/customizing-forms/](http://rocketgeek.com/plugins/wp-members/users-guide/customizing-forms/)
 *  Thread Starter [James Anderson Jr.](https://wordpress.org/support/users/jamesandersonjr/)
 * (@jamesandersonjr)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/request-seperate-message-box-css-classes/#post-3218765)
 * Thanks for the tips Chad! I’ll look into all the suggested info.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Request Seperate Message Box CSS Classes’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

## Tags

 * [lang](https://wordpress.org/support/topic-tag/lang/)
 * [messages](https://wordpress.org/support/topic-tag/messages/)

 * 6 replies
 * 2 participants
 * Last reply from: [James Anderson Jr.](https://wordpress.org/support/users/jamesandersonjr/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/request-seperate-message-box-css-classes/#post-3218765)
 * Status: resolved