Title: Theme templates
Last modified: August 21, 2016

---

# Theme templates

 *  Resolved [inTOWN](https://wordpress.org/support/users/intown/)
 * (@intown)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/theme-templates/)
 * I created a template by copying album-compact.php to mytheme/nggallery/album-
   myname.php and by adding `echo do_shortcode('[album id=1 template=myname]');`
   to my theme.
    After I added something to this template, I was surprised the browser(
   or any other browser) would not show my changes. It took me a long time of trying
   to find the problem (was it calling the right template? Emptying cache 20 times?
   Other interfering files? ) Only after changing some settings in the backend before
   my changes would show up (any settings like f.e. gallery settings) . How is this
   possible? If I change or add html/php to a template, why doesn’t it show up right
   away? Where is the ‘delay’?
 * [http://wordpress.org/plugins/nextgen-gallery/](http://wordpress.org/plugins/nextgen-gallery/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [ericwilmoth](https://wordpress.org/support/users/ericwilmoth/)
 * (@ericwilmoth)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/theme-templates/#post-4450265)
 * My guess is that you need to delete the wordpress cache itself (i’m assuming 
   you’ve just been deleting the browser cache; if so, I ran into the same confusion
   long ago).
 * I’ve been out of the scene for a while and am going back through and re-familiarizing
   myself with things, but assuming there isn’t a simpler way of doing this now,
   what works for me is the WP Super Cache plugin. install/activate it, then go 
   to the contents tab. There you’ll see ‘delete expired’ and ‘delete cache’ — i
   usually hit both, since sometimes I’ve experienced updates still not ‘showing’
   otherwise.
 * hope that helps!
 *  Thread Starter [inTOWN](https://wordpress.org/support/users/intown/)
 * (@intown)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/theme-templates/#post-4450268)
 * Hey there Eric,
    You are right, it has to do with cache, but inside NextGen. 
   The same thing I can also do by going to Gallery > Other Options > Misc > clear
   image cache. Very annoying however, since now I have to do that at every little
   change while developing.
 * Thanks for the suggestion, at least I know now what the problem is so I won’t
   have to spend hours finding the mysterious bug 😉 !
 * Good luck with getting back in things!
 *  [ericwilmoth](https://wordpress.org/support/users/ericwilmoth/)
 * (@ericwilmoth)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/theme-templates/#post-4450274)
 * Thanks–and glad you found your solution; I actually save a bookmark to the cache
   clearing page to make it quickly accessible–maybe you could do the same?
 * BTW, you may be able to do me a really simple favor–i already posted for help
   on this, but still waiting for answer: under other options>lightbox effects>show
   advanced settings, with lightbox selected, what is the ‘code’? I accidentally
   deleted it!
 *  Thread Starter [inTOWN](https://wordpress.org/support/users/intown/)
 * (@intown)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/theme-templates/#post-4450275)
 * **Code =**
    class=’ngg_lightbox’
 *  [ericwilmoth](https://wordpress.org/support/users/ericwilmoth/)
 * (@ericwilmoth)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/theme-templates/#post-4450279)
 * thanks! just to be sure, it doesn’t also have something like %GALLERY_NAME% in
   it? the other ones all seem to have some variation on that…
 *  Thread Starter [inTOWN](https://wordpress.org/support/users/intown/)
 * (@intown)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/theme-templates/#post-4450281)
 * hi,
 * Not when lightbox effects are selected, only when you select one of the other
   effects it seems…
 * Can I ask you an off topic question as well?
    I am looking for a way to select
   the amount of galleries shown in an album. I need to be able to set a different
   amount on different pages (home page x amount of galleries, photo page another
   x amount of galleries). Right now I am using the echo short code to show an album,
   but is there another way you might now of?
 *  [ericwilmoth](https://wordpress.org/support/users/ericwilmoth/)
 * (@ericwilmoth)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/theme-templates/#post-4450283)
 * Thanks for the prompt reply–also i tested it, and the code is working!
 * Wish i could offer some input on the album issue, but i have yet to even use 
   that feature, so I’m clueless. Hope you find what you’re after!
 * BTW, hope you have a happy new year!
 *  Thread Starter [inTOWN](https://wordpress.org/support/users/intown/)
 * (@intown)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/theme-templates/#post-4450286)
 * Same to you on both subjects!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Theme templates’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [inTOWN](https://wordpress.org/support/users/intown/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/theme-templates/#post-4450286)
 * Status: resolved