StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 09-09-2011, 12:30 PM
brookrobinson brookrobinson is offline
Registered User
Pro Plus Member
 
Join Date: Apr 2011
Location: Warrington
Posts: 269
Default

Hi Violet,

Thanks for the plugin recommendations, i already have adminimize, and NOW the other one so thanks for that, the problem was Violet the "add new" button which is on the page when you click pages, i wanted the client to see his pages and be able to edit them, just not add new ones....BUT i found a way how to do it, so heres the code incase anyone else is trying to do it, this only hides the button and for people who are running user/member sites there are still other ways they can access this page so you guys would need a "roles" plugin like the members plugin to restrict access.
// functions.php
function hide_buttons()
{
global $current_screen;

if($current_screen->id == 'page');
{
echo '<style>.add-new-h2{display: none;}</style>';
}


}
add_action('admin_head','hide_buttons');

Im still fairly new with genesis n wordpress so please correct me if im wrong "Nick" or "Violet".

Heres my next task may be you guys can help me with, im now trying to remove the "show all dates" dropdown menu and the "filter" button, im guessing i could use the code above again to remove the button, but im not to sure what to change, and imguessing there may be a hook or something to remove the drop down box..

Any help, or point me in the right direction, would be very much appreciated.

Brook
 

Tags
add new button, admin, wordpress add new pages, wordpress admin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove "About Admin" and "Comments are closed" from bottom of posts zreboletti General Discussion 3 11-22-2010 01:07 PM
Wordpress 2.8 Upgrade - Only "HTML" Post View - no "Visual" lizzzlu General Discussion 3 06-16-2009 08:16 PM


All times are GMT -5. The time now is 01:51 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.