I am sure you have used Nextgen Gallery plugin to display images on your blog. But there are times, when you simply want to display images in your style and not using the pre-defined templates. In this post, I am going to tell you how you can create custom template for nextgen gallery. Follow the below steps to achieve this –

  1. Copy gallery.php from the plugin directory (wp-content/plugins/nextgen-gallery/view/)
  2. Rename gallery.php to gallery-mytemplate.php , where mytemplate can be replace with the name of the template you want to create.
  3. Now goto your themes folder and create a new folder called nggallery
  4. Now upload your new template file gallery-mytemplate.php into this folder and you are done.

Obiviously, you want to change the content of gallery-mytemplate.php as required. Also note that if you are using a framework and working in child theme then also you need to create this nggallery folder inside parent folder and store your custom files inside that folder.

Hope that works for you. Do let me know your comments or suggestions.


Stay Digified!!
Sachin Khosla

Share this post: