• Resolved tedvg

    (@tedvg)


    I want Nextgen gallery to use a different default template, in my case the carousel template.

    I cannot use the code you normally used in a post (like [ nggallery id=2 template=carousel ]), because I created some code in my template that selects the gallery depending on a value from a custom field in a page.

    For now, I’ve adapted nggfunctions.php to select the carousel template if the code in the post doesn’t select another
    (for those who are interested, add the following code directly under the “// look for gallery-$template.php or pure gallery.php” -comment (line 302 in my case):

    `if (!$template){
    $template = ‘carousel’;
    }` ).
    But when I update Nextgen gallery this code will be overwritten. Does anyone knows a better alternative that will survive an update?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Just place gallery-carousel.php in your theme as file into : <theme folder>/nggallery/gallery.php

    Thread Starter tedvg

    (@tedvg)

    That worked great!

    Thanks for the reply, Alex.

    i m using own design, kindly tell me how can i add new page and one page for NextGEN Gallery, at this time i have to create new page for every new gallery.
    i want to create add multiple gallery in one page.
    can i show one thumb for every gallery in main page
    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: NextGEN Gallery] select default template’ is closed to new replies.