Load a theme based on browser detection

You can use the built in function wp_is_mobile() Override a style with wp_enqueue_style add_action(‘wp_enqueue_scripts’, ‘my_mobile_styles’); function my_mobile_styles(){ if(wp_is_mobile()){ wp_register_style( ‘my-mobile-style’, ‘URL_to_stylesheet’, array(‘id-of-main-stylesheet’) ); wp_enqueue_style( ‘my-mobile-style’ ); } } Switch themes by filters You can use the stylesheet and template filters to alter which theme WordPress will render. # Parent Theme add_filter( ‘template’, ‘my_mobile_template’, 99999, 1); … Read more

What does the term “bundled-theme” mean?

The term bundled theme is simply just a name/term used for the default (twenty-something) themes shipped with wordpress. The current version of wordpress 3.9.1 have three of themes shipped by default, namely ‘twentytwelve‘, ‘twentythirteen‘ and ‘twentyfourteen‘. The two previous twenty-something themes namely ‘twentyten‘ and ‘twentyeleven‘ are also available for download and is still currently been … Read more

Custom Upload Panel in Menu Bar

I think it’s not necessary to use a theme folder to hold some slider pictures. You can use a post or a page to be the “gallery holder” (it can even be left as draft), and pull its image attachments like this: function getSimpleGal($id){ $results = get_children( array( ‘post_parent’ => $id, ‘post_status’ => ‘inherit’, ‘post_type’ … Read more

What is the best way to provide plugin users with a way to customized the styles

Is it possible? Yes. Option 1 Simply register and enqueue your default stylesheet. The theme stylesheet can then be used to override whatever styles you implemented. function register_my_styles() { wp_register_style( ‘default-style’, plugins_url(‘default.css’, __FILE__) ); wp_enqueue_style( ‘default-style’ ); } add_action( ‘wp_enqueue_scripts’, ‘register_my_styles’ ); Option 2 Register whatever custom options you need either on a specific plugin … Read more