- This topic has 25 replies, 3 voices, and was last updated 7 years, 2 months ago by Leo.
-
AuthorPosts
-
January 7, 2017 at 5:06 pm #261703Scott
I’m using a plugin called Mooberry that lets folks enter books into a library. But with the new extended theme, each book entry page has the GP section for Image/Content/Logo at the top, which is very confusing. Is there a way to suppress this on certain page types>
January 7, 2017 at 5:09 pm #261704LeoStaffCustomer SupportHi Scott,
Can you provide the link to the page?
January 7, 2017 at 6:33 pm #261720ScottIt’s an internal page in WP… can I send you an image somehow?
I don’t see a way to attach one here.
January 7, 2017 at 6:35 pm #261721LeoStaffCustomer SupportSure – You can send it to support@generatepress.com or upload to a site like https://postimage.org/ and paste the link here π
January 7, 2017 at 10:24 pm #261751TomLead DeveloperLead DeveloperTo hide the meta box, you should be able to click on “Screen Options” at the top right, and un-check the box next to “Page Header”.
January 8, 2017 at 10:34 am #261929ScottIt worked. Thanks! Are those options added by Mooberry, GP, or both? Awesome profile pic tho. Made me go awwwwwwwww. π
January 8, 2017 at 12:17 pm #261948ScottOK, turns out that worked for my user account, but other user accounts still have all those options on their page. How do I suppress the options I want to go away, but for ALL users? π
January 8, 2017 at 10:51 pm #262038TomLead DeveloperLead DeveloperThat meta box is the Page Header add-on. Are you using it anywhere? If not, you can deactivate it in “Appearance > GeneratePress”.
January 9, 2017 at 8:39 am #262214ScottSorry, I’m not being clear enough. π
As a user, I can suppress a bunch of things on the page through the Screen Options box at top, right? For me on this site, that includes:
Need Help With Mooberry Book Manager?
Disable Elements
Sidebar Layout
Footer Widgets
Page Builder Integration
Discussion
Slug
Advanced Book Widget
Related BooksI can also make the form on the book entry page for Mooberry one column, which is much easier to use.
But I’m not just a user. I am the site admin. I want to make those same viewing changes, but for all users. Yet when I suppress them, they only seem to be suppressed for my user account.
So how do I set things up so they are suppressed for all users who view the add books page? And so everyone gets one column for the form?
π
January 9, 2017 at 8:36 pm #262438TomLead DeveloperLead DeveloperSomething like this might help: http://wordpress.stackexchange.com/questions/15376/how-to-set-default-screen-options
January 10, 2017 at 7:23 pm #262784ScottHmmm… looks like a little more advanced than I am ready for… LOL… I can always find someone to help who knows css.
However…
It mentions that it is possible to restrict these things by user role. Is there an easier way to block certain boxes for anyone other than admins?
–Scott
Sorry to be such a PITA π
January 10, 2017 at 10:12 pm #262808TomLead DeveloperLead DeveloperProbably not without using code. Your best bet is the function I linked to, it looks like you just need to plug it in and you should be good to go: https://docs.generatepress.com/article/adding-php/
January 11, 2017 at 3:12 pm #263139ScottOK, so I added the code to my functions.php file. but I’m not sure what it does? Where do I go now to uncheck meta boxes for users?
January 12, 2017 at 12:00 am #263239TomLead DeveloperLead DeveloperAh, I see now – there’s a part of that code that tells you to add the ID for the defaults:
// Set the default hiddens if it has not been set yet
So find:
$meta_value = array('postcustom','trackbacksdiv','commentstatusdiv','commentsdiv','slugdiv','authordiv','revisionsdiv');
And replace it with:
$meta_value = array('postcustom','trackbacksdiv','commentstatusdiv','commentsdiv','slugdiv','authordiv','revisionsdiv','generate_page_header_meta_box');
Otherwise, a plugin like this might help: https://wordpress.org/plugins/adminimize/
January 14, 2017 at 8:37 pm #264180ScottI installed Adminimize, but I don’t see the options there to suppress what I need to suppress there.
You don’t do this kind of thing on a paid hourly basis, do you?
π
-
AuthorPosts
- You must be logged in to reply to this topic.