Ready to get started?Download WordPress


WP Popup Plugin
[resolved] Add themes (5 posts)

  1. Patrick Hesselberg
    Posted 8 months ago #

    Are there any developer docs if I want to build my own theme instead of the default and is that even possible?


  2. Muneeb
    Plugin Author

    Posted 8 months ago #

    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.


  3. Patrick Hesselberg
    Posted 7 months ago #

    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?

  4. Muneeb
    Plugin Author

    Posted 7 months ago #

    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.

  5. Patrick Hesselberg
    Posted 7 months ago #

    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!


You must log in to post.

About this Plugin

About this Topic


No tags yet.