Support » Plugin: WP Mobile Detector » How do you create a custom theme for WP Mobile Detector?

  • I have the premium version of this plugin and would like to create a custom theme based off of either “Websitez Mobile” and “Corporate Mobile”. How do I go about doing this?

    I’ve copied “Corporate Mobile” and placed it in the WordPress themes directory to avoid it being overwritten when WP Mobile Detector updates are released. I’ve edited the style.css as I would with any typical theme but it won’t show in my list. Other themes in the main WP theme directory show up. I even updated the wp-load.php call in style.php as well.

    Some developer documentation would be great.


Viewing 2 replies - 1 through 2 (of 2 total)
  • So, I’ve figured out how to get the plugin to see my theme. I’m using Multisite and needed to activate the theme first. Yeah, I know…

    I’m having another issue now that I can see my theme and select it. I’m basing my theme off of the Corporate theme and want all the setting options however there is a check within the plugin’s theme.php file which doesn’t allow this.

    On line 261 there is this function:

    function click_check(){
      if(activeTheme == "websitez-mobile" || activeTheme == "corporate-mobile"){
        return true;
        jQuery("#message").html("This section is not available for this theme.").fadeIn().delay(2000).fadeOut('slow');
        return false;

    I can easily add the name of my theme to the “if” statement but this will be lost upon any updates to the plugin. Is there a way to accomplish what I want without having to remember to make this mod to the plugin after each update?


    Plugin Author websitezcom


    Right now that is the best way. I plan to place hooks into the plugin in the future, but right now this is the best bet.

    Also, most options are in the style.php file. You’ll see snippets at the top grabbing the options and then placing the options into the stylesheet and setting a proper header using PHP.

    I plan on writing a guide for the theme component of this since this is one of the most powerful aspects of the plugin.

    For now, you can email me directly and I will help you with any theming questions you may have.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do you create a custom theme for WP Mobile Detector?’ is closed to new replies.