• Hello, I’m interested in creating a new template for NextGen gallery. Mainly to remove the pagination when I want to (without using CSS).

    Looking at the legacy templates it seems to work fine, however I want it to output a different thumbnail size if I decide to override it when placing the gallery. The legacy templates just outputs the default thumbnail src and size.

    This is the code that outputs that info:

    src="<?php echo nextgen_esc_url($image->thumbnailURL) ?>"
    <?php echo $image->size ?>

    Is there a code snippet I can use to have it get the override dynamic thumbnail src and size if one exists?

    Thanks for any direction.

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 1 replies (of 1 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @jberg1 – The “template” system in NextGEN Gallery is a hold-over from the NextGEN Legacy methods and in this case, the over-ride on thumbnails is not honored by the currently included templates.

    You can look into the code used here:
    ../wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/templates/thumbnails/index.php

    … or you might look at hard-coding the image size(s) into your template(s).

    – Cais.

Viewing 1 replies (of 1 total)
  • The topic ‘Template Creation’ is closed to new replies.