Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am building a Wordpress membership site where I need to collect user generated content in form of: -posts -events -classified ads

I am using three plugins to accomplish this. However I need to integrate the style of the admin panel with the design of the site for certain user roles.

Is this possible without having to build a custom plugin?

share|improve this question
2  
Yes it is. By default, any user role, any user - when signing in gets access to the dashboard area. Naturally privileges determine what they see, buts its the admin UI. If you are circumventing that by disallowing users to access the dashboard, either through code of your own or through the plugins, then we'll need to see some more info. For instance, a site I am working on now allows user registration, posting and content management from the front end only and restricts access to the dashboard. This is not an out of the box feature. So what have you tried? What errors (if any) are you seeing? –  userabuser Sep 18 '12 at 14:47
    
I am working with a membership plugin called PaidMembershipsPro. It gives me shortcodes to add the user registration process into pages. However when the members need to post up articles, events or classified ads the theme switches to the Wordpress admin style. This is freaking my client out and I think they would prefer a more seamless approach. –  Toby Sep 18 '12 at 15:37
1  
Ok, so now you're saying the opposite of wanting to integrate the style of the admin panel with the design of the site. What you mean is that you want your users to publish content from the front end, so it appears that they never leave the site, maintaining the design and layout, leaving only the admin dashboard for you and your client. –  userabuser Sep 18 '12 at 15:53
    
Well put that is exactly what I want to do. –  Toby Sep 18 '12 at 15:56

1 Answer 1

To override the CSS on the admin side (in order to make it match your theme) you can enqueue your own css:

function admin_custom_css()
     { wp_enqueue_style( 'stylesheet_name', 'stylesheet.css') };
add_action('admin_enqueue_scripts', 'admin_custom_css' );  

This will insert your custom css on every admin page. See this answer for how to do this for certain admin pages only:

How do I enqueue styles/scripts on certain /wp-admin pages?

share|improve this answer
1  
Use admin_enqueue_scripts instead of admin_init. –  Joseph Sep 19 '12 at 1:59
    
Thanks, @Joseph - fixed it in the code –  marfarma Sep 19 '12 at 13:13
    
Glad to help! I see this issue far too often, unfortunately, and I think it is due to legacy code. –  Joseph Sep 19 '12 at 13:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.