Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #19428

    Hi,

    I would like to hide the “Slideshow Options” to an “editor” of my website. How can I accomplish this?

    Thanks Ryan

    #103651

    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

    #103652

    Is there something I can do in the functions.php to make this work?

    #103653

    Hey Ryan,

    Not that I know of either.

    Regards,

    Devin

    #103654

    I didn’t test this but you can try to replace following code in choicesincludesadminregister-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/

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Add New Portfolio Entry – Get Rid of "Slideshow Options"’ is closed to new replies.