Support » Plugins and Hacks » [Resolved] Minileven child theme

[Resolved] Minileven child theme

  • Is there any way to create a child theme for minileven, Jetpack’s mobile theme? Every time Jetpack is updated I have to change minileven all over again.

    I do not want to use the Custom CSS module included in Jetpack, because I do not want other admins on my site to have access to the CSS.

    I have high praise and much appreciation for you guys building Jetpack.


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeremy Herve


    While you can’t use a Minileven child theme, you could load a custom stylesheet via a small plugin. You can follow the tutorial here to get started:

    Instead of hooking the jetpackme_author_image function, you’ll want to hook your own function that loads the stylesheet.

    Thank you Jeremy!

    Here’s the plugin I wrote should anybody else need it:

    // Check if we are on mobile
    function jetpackme_is_mobile() {
        // Are Jetpack Mobile functions available?
        if ( ! function_exists( 'jetpack_is_mobile' ) )
            return false;
        // Is Mobile theme showing?
        if ( isset( $_COOKIE['akm_mobile'] ) && $_COOKIE['akm_mobile'] == 'false' )
            return false;
        return jetpack_is_mobile();
    // On mobile?
    if ( jetpackme_is_mobile() ) {
        add_action( 'wp_enqueue_scripts', 'jetpackme_custom_css' );
    // Build the function
    function jetpackme_custom_css() {
        wp_enqueue_style( 'custom-style', plugins_url( 'custom-style.css', __FILE__ ), array('style'), '20120208', 'all' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Minileven child theme’ is closed to new replies.