Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18808

    Hi,

    Would it be possible to make “Open Lightbox When Clicked” the default option when adding images to a portfolio entry?

    As it stands now “Link to Post” is the default & as my client will only be utilizing the lightbox feature it would be great if I could set this up for him.

    Cheers

    #101021

    Open up coherenceincludesadminregister-admin-metabox.php and replace following code:

    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'),

    ),

    with:

    array(	"name" 	=> "Apply link to the image?",
    "desc" => "",
    "slug" => "media",
    "class" => "av_2columns av_col_1",
    "id" => "slideshow_link",
    "type" => "select",
    "std" => "lightbox",
    "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'),

    ),

    #101022

    Hi Dude,

    Thanks so much for the quick reply & solution.

    Cheers

    #101023

    Hey!

    Glad that I could help you :)

    Regards,

    Peter

    #101024

    Does this same code work for the Angular theme?

    #101025

    Hi!

    pretty much yes. just search for the correct array and set the “std” value to lightbox :)

    Best regards,

    Kriesi

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

The topic ‘Make "Open Lightbox When Clicked" Default Option’ is closed to new replies.