Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #18557

    I am creating a large number of portfolios, and in order to streamline the process, I would like to change the default settings for featured media in portfolio entries. I would like the following defaults:

    Apply link to the image?

    – No link

    Caption Style and Position?

    – bottom framed

    Finally, how can I remove the option for authors to change them, and to keep the defaults set when they are creating/editing portfolio pages?

    #99930

    Hi,

    You can find it on includes > register-admin-metabox, find this code to change the Apply link to image? defaults

    array(	"name" 	=> "Apply link to the image?",
    "desc" => "",
    "slug" => "media",
    "class" => "av_2columns av_col_1",
    "id" => "slideshow_link",
    "type" => "select",
    "std" => "self",
    "no_first" => "true",
    "subtype" => array('No link'=>'','Open Lightbox when clicked'=>'lightbox','Link to this Post'=>'self','Link to Page'=>'page','Link to Category'=>'cat','Link manually'=>'url'),

    Replace it with

    array(	"name" 	=> "Apply link to the image?",
    "desc" => "",
    "slug" => "media",
    "class" => "av_2columns av_col_1",
    "id" => "slideshow_link",
    "type" => "select",
    "std" => "no-link",
    "no_first" => "true",
    "subtype" => array('No link'=>'no-link','Open Lightbox when clicked'=>'lightbox','Link to this Post'=>'self','Link to Page'=>'page','Link to Category'=>'cat','Link manually'=>'url'),

    To change the Caption Style and Position, find this code

    "name" 	=> "Caption Style and Position?",
    "desc" => "",
    "id" => "caption_position",
    "type" => "select",
    "std" => "caption_left caption_left_framed caption_framed",
    "slug" => "media",
    "no_first" => "true",
    "class" => "av_2columns av_col_1",
    "subtype" =>
    array( 'right framed'=>'caption_right caption_right_framed caption_framed',
    'left framed'=>'caption_left caption_left_framed caption_framed',
    'bottom framed'=>'caption_bottom caption_bottom_framed caption_framed',
    'right without frame'=>'caption_right',
    'left without frame'=>'caption_left',
    'bottom without frame'=>'caption_bottom',

    )),

    Replace it with this

    "name" 	=> "Caption Style and Position?",
    "desc" => "",
    "id" => "caption_position",
    "type" => "select",
    "std" => "caption_bottom caption_bottom_framed caption_framed",
    "slug" => "media",
    "no_first" => "true",
    "class" => "av_2columns av_col_1",
    "subtype" =>
    array( 'right framed'=>'caption_right caption_right_framed caption_framed',
    'left framed'=>'caption_left caption_left_framed caption_framed',
    'bottom framed'=>'caption_bottom caption_bottom_framed caption_framed',
    'right without frame'=>'caption_right',
    'left without frame'=>'caption_left',
    'bottom without frame'=>'caption_bottom',

    )),

    Regards,

    Ismael

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

The topic ‘Changing default portfolio caption settings’ is closed to new replies.