• Resolved rebecca

    (@rebeccayoung)


    Hi there, thank you for a wonderful plugin.

    I am interested in theming/customising Simple Lightbox for a website I’m working on. However, I’m a little confused after reading through the theming instructions you have provided here.

    Where should the code (init function) be placed to register a custom Simple Lightbox theme, and where should I create the folder which will contain the custom theme’s files? I assume that if I create the theme folder directly within the Simple Lightbox plugin itself (Plugins > Simple Lightbox > Themes), this will be overwritten if/when the plugin is updated.

    I’d be very grateful for any advice you can offer. Thank you!

    • This topic was modified 4 years, 5 months ago by rebecca.
    • This topic was modified 4 years, 5 months ago by rebecca.
    • This topic was modified 4 years, 5 months ago by rebecca.
Viewing 1 replies (of 1 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, as noted at the beginning of the aforementioned tutorial:

    This tutorial covers adding a custom theme as a WordPress plugin, but it could also be done as part of a theme with a few simple modifications.

    Adding a custom theme as a plugin is the recommended approach, as it will continue to be available even if the theme is changed.

    There’s also a link to a sample lightbox theme at the beginning of that tutorial, which is installed as a plugin on your site. By downloading the sample theme, you can follow along with the tutorial, which should help to clarify how the theme should be initialized, etc.

    If you do decide to include the lightbox theme as part of a WordPress theme, then you would just add the theme initialization (such as the example code in the “Hook it up” of the tutorial) to a file that is loaded whenever the theme is active, such as the theme’s functions.php file.

    Hope this helps! Please let me know if you have any additional questions and I would be glad to reopen this ticket and take another look.

Viewing 1 replies (of 1 total)
  • The topic ‘Theming for Simple Lightbox’ is closed to new replies.