Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #25574

    Hi,

    in blogposts, I have to set “Apply link to the image?” to “no link” in order to “disable” the lightboxfunction.

    How can I set this as a default, so that an author doesn’t have to do this every time?

    Best

    Boris

    #127441

    Hi,

    What theme do you have?

    Open includes > admin > register-admin-metabox.php, find this 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'),

    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" => "nolink",
    "no_first" => "true",
    "subtype" => array('No link'=>'nolink','Open Lightbox when clicked'=>'lightbox','Link to this Post'=>'self','Link to Page'=>'page','Link to Category'=>'cat','Link manually'=>'url'),

    Regards,

    Ismael

    #127442

    Hi Ismael,

    Sentence. (www.hebammenblog.de)

    Should I proceed?

    Best

    Boris

    #127443

    Hi,

    that worked.

    thx

    Boris

    #127444

    Hi Ismael,

    okay, this changes the default setting for the future.

    But, how can I change it for the 50 pics I already have posted so far?

    Is there a way to edit this in some database or something like that?

    Otherwise, I will have to edit 50 posts. Argh! ;-)

    Best Boris

    #127445

    Hi,

    The database will take a lot longer and 1 mistake may cost you everything, plus need to enter lengths of characters for each change. If its only 50 images, what i do is set the All Posts to show 50 posts (not 10) so they all on same page, then open 25 of them and like an assembly line first click on image on all of them to get the setting, then go backward through all of them to change setting and then once more to save. Would take me 8 minutes perhaps.

    Thanks,

    Nick

    #127446

    perfect!

    thx

    Boris

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

The topic ‘How to disable lightbox link by default?’ is closed to new replies.