• Resolved David Perroud

    (@davidperroud)


    Dear,
    each time i update the FGPlugin i have to upload my templates again
    and change the FILE_GALLERY_DEFAULT_TEMPLATES list in the file-gallery.php

    So, i copy/pasted the FILE_GALLERY_DEFAULT_TEMPLATES line in my theme functions, so i don’t have to do it every time, but i can’t find a way to change the default template folder, so i could put it somewhere else and my templates wouldn’t desapear each time…

    any idea ?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aesqe

    (@aesqe)

    @david Perroud: in which folder are you placing your templates?

    Thread Starter David Perroud

    (@davidperroud)

    Hey !

    Thank you to help me ??
    so, i put my templates in plugins/file-gallery/templates/

    ex : plugins/file-gallery/templates/books/

    Thread Starter David Perroud

    (@davidperroud)

    PS: maybe i didn’t get how to use the plugin correctly,
    my idea is to be able to add my own templates somewhere it will not be deleted when i update the plugin, and to find a solution to don’t have to modify the file-gallery.php each time.

    Thread Starter David Perroud

    (@davidperroud)

    OK, i finally got this link :
    https://www.blogbmw.fr/wp-content/plugins/file-gallery/help/

    and so, i found the answer :

    if your theme’s folder is “my-wp-theme”, your structure would look like this:

    my-wp-theme
    ‘——–> file-gallery-templates
    ‘——–> your-custom-template
    ‘——–> gallery.php
    ‘——–> gallery.css

    so i don’t need anything else, just to put the template at the good place, thank you for your great plugin!
    all the best.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Own template DELETE after update’ is closed to new replies.