Title: Hard coded style vs css
Last modified: November 1, 2016

---

# Hard coded style vs css

 *  Resolved [kuttekop](https://wordpress.org/support/users/kuttekop/)
 * (@kuttekop)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/hard-coded-style-vs-css/)
 * Thank you for this plugin.
    However the disadvantage is that in some places the
   style is hard coded, like
 * > <div align=”center”>
 * I prefer to do the style completely in css
 * This would be an improvement in the next version
    -  This topic was modified 9 years, 7 months ago by [kuttekop](https://wordpress.org/support/users/kuttekop/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/hard-coded-style-vs-css/#post-8405789)
 * Any place in the plugin that something is hard coded like that can be changed
   via filters.
 * Any place that you see it in the code, look close by and you will see the filter
   hook that allows you to change it. All filter hooks are documented inline in 
   the code, and most are [documented in the plugin’s documentation.](http://rocketgeek.com/plugins/wp-members/docs/filter-hooks/)
 * Here’s an example. The generic error message dialog wraps with the following:
 * `<div class="wpmem_msg" align="center">`
 * The default tags for this message can be filtered with [wpmem_msg_args](http://rocketgeek.com/plugins/wp-members/docs/filter-hooks/wpmem_msg_args/).
   Use the filter to pass in your own tag:
 *     ```
       add_filter( 'wpmem_msg_args', 'my_msg_args' );
       function my_msg_args( $args ) {
           $args['div_before'] = '<div class="wpmem_msg">';
           return $args;
       }
       ```
   
 * You can change whatever you want in this way – change the class, add an ID, change
   the tag. Just keep in mind that if you change the tag from being a div, then 
   you also need to change the closing tag (div_after).

Viewing 1 replies (of 1 total)

The topic ‘Hard coded style vs css’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/hard-coded-style-vs-css/#post-8405789)
 * Status: resolved