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

    (@muneeb)

    Hi Patrick,

    Yes, It’s possible to build your own themes but right now there aren’t any developer docs.

    I hope the default theme code helps you in building your own theme, you can find the source code for the default theme in the popup plugin directory. views/themes/default/

    You can modify the code there to suit your own needs instead of creating a new one.

    Thanks
    Muneeb

    Thread Starter Compute

    (@compute)

    Thanks for your quick answer!

    The Whole seems nice structured and it makes alot of sence about making your own theme.

    What hook would I be needing to use if I want to add a theme to with my own plugin?

    Plugin Author Muneeb

    (@muneeb)

    You have to use the plugins_loaded hook and then just create an instance of the class which will extend the class Wpp_Popup_Theme.

    Look for the wpp_default_popup_theme.php file in the includes/classes/ directory, I hope the code in theme class will help you in understanding how it all works.

    Thread Starter Compute

    (@compute)

    I’ve found the Wpp_Default_Popup_Theme and Wpp_Popup_Theme classes so I’m good to go. Thank you for this great plugin!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add themes’ is closed to new replies.