Archived topic
Is there a way to suppress Image/Content/Logo?
25 replies · Started by Scott on January 7, 2017
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>
Hi Scott,
Can you provide the link to the page?
It's an internal page in WP... can I send you an image somehow?
I don't see a way to attach one here.
Sure - You can send it to support@generatepress.com or upload to a site like https://postimage.org/ and paste the link here :)
To 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".
It worked. Thanks! Are those options added by Mooberry, GP, or both? Awesome profile pic tho. Made me go awwwwwwwww. :)
OK, 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? :)
That meta box is the Page Header add-on. Are you using it anywhere? If not, you can deactivate it in "Appearance > GeneratePress".
Sorry, 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 Books
I 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?
:)
Something like this might help: http://wordpress.stackexchange.com/questions/15376/how-to-set-default-screen-options
Hmmm... 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 ;)
Probably 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/
OK, 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?
Ah, 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/
I 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?
:)