WordPress.org

Forums

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

  1. Compute
    Member
    Posted 1 year ago #

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

    http://wordpress.org/plugins/m-wp-popup/

  2. Muneeb
    Member
    Plugin Author

    Posted 1 year 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.

    Thanks
    Muneeb

  3. Compute
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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. Compute
    Member
    Posted 1 year 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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Popup Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.