Hi,
I would like to hide the "Slideshow Options" to an "editor" of my website. How can I accomplish this?
Thanks Ryan
Hi,
I would like to hide the "Slideshow Options" to an "editor" of my website. How can I accomplish this?
Thanks Ryan
Hi,
There is no option to select which feature an admin can access or not on Avia Themes. It is not included, at least not yet. Let me tag the rest of the support team, maybe they have an idea.
Regards,
Ismael
Is there something I can do in the functions.php to make this work?
Hey Ryan,
Not that I know of either.
Regards,
Devin
I didn't test this but you can try to replace following code in choices\includes\admin\register-admin-metabox.php:
//avia pages holds the data necessary for backend page creation
$boxes = array(
array( 'title' => 'Layout', 'id'=>'layout' , 'page'=>array('post','page'), 'context'=>'side', 'priority'=>'low' ),
array( 'title' => 'Slideshow Options', 'id'=>'slideshow_meta', 'page'=>array('post','page'), 'context'=>'normal', 'priority'=>'high' ),
array( 'title' => 'Slideshow Options', 'id'=>'slideshow_meta_portfolio', 'page'=>array('portfolio'), 'context'=>'normal', 'priority'=>'high' ),
array( 'title' => 'Featured media - add any number of images and/or videos', 'id'=>'media' , 'page'=>array('post','page','portfolio'), 'context'=>'normal', 'priority'=>'high' ),
//array( 'title' => 'Additional Options', 'id'=>'add_options' , 'page'=>array('post','page','portfolio'), 'context'=>'normal', 'priority'=>'high' ),
);
with:
if (current_user_can('administrator')) {
//avia pages holds the data necessary for backend page creation
$boxes = array(
array( 'title' => 'Layout', 'id'=>'layout' , 'page'=>array('post','page'), 'context'=>'side', 'priority'=>'low' ),
array( 'title' => 'Slideshow Options', 'id'=>'slideshow_meta', 'page'=>array('post','page'), 'context'=>'normal', 'priority'=>'high' ),
array( 'title' => 'Slideshow Options', 'id'=>'slideshow_meta_portfolio', 'page'=>array('portfolio'), 'context'=>'normal', 'priority'=>'high' ),
array( 'title' => 'Featured media - add any number of images and/or videos', 'id'=>'media' , 'page'=>array('post','page','portfolio'), 'context'=>'normal', 'priority'=>'high' ),
//array( 'title' => 'Additional Options', 'id'=>'add_options' , 'page'=>array('post','page','portfolio'), 'context'=>'normal', 'priority'=>'high' ),
);
}
else
{
//avia pages holds the data necessary for backend page creation
$boxes = array(
array( 'title' => 'Layout', 'id'=>'layout' , 'page'=>array('post','page'), 'context'=>'side', 'priority'=>'low' )
);
}
Or you can try this plugin: http://wordpress.org/extend/plugins/adminimize/
You must log in to post.