• Hello!
    I’m looking for a possibility to manipulate the page which is created by the Button when editing a gallery.
    For now only the tag (e.g. [nggallery id=”10″]) is written in that page. May it be possible to add a few things?

    I would love to have it like that:

    <style>
    .site-content .entry-content {
    	 max-width: none;
     	 }
    .site-content .entry-header {
     	 max-width: none;
     	 }
     </style>
    <a href="http://qwerob.com/fotos/">Zurück zur Albenübersicht</a>
    <br>
    [nggallery id="10"]
    <a href="http://qwerob.com/fotos/">Zurück zur Albenübersicht</a>

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @qwerob – We do not currently have a “button” that writes a gallery display shortcode, especially a NextGEN Legacy style shortcode.

    Which version of NextGEN Gallery are you referring to?

    – Cais.

    Thread Starter qwerob

    (@qwerob)

    2.1.23 “NextGEN Gallery by Photocrati”

    http://abload.de/img/gallery1xqo4.jpg

    That Button “Add page” creates a page which just contains the shortcode of the gallery. I would love to add the code I posted above.

    Plugin Contributor photocrati

    (@photocrati)

    @qwerob – Something to consider is creating a custom template for the NextGEN Gallery Basic Thumbnails display type and then set that as the default under Gallery > Gallery Settings … this is what shortcodes use as their defaults.

    Look under wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/gallery-caption.php for the “caption” template, I suggest using this as your starting point.

    Once you have added your code, save your template in the same location using the same naming convention.

    Thanks!

    _ Cais.

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

The topic ‘Create page template for galleries’ is closed to new replies.