To insert code use <code>...</code>.
Disable Custom Background on Smart Phones
  • Is there a way to replace this custom background with a different custom background on a smart phone? http://www.lafeteweddings.com/wordpress/

    Thanks,
    Melissa
  • 2 Comments sorted by
  • Hi Melissa,


    You can try use @media handheld in custom css code textarea in striking->general options page.

    @media handheld {
    body { background-image:display:none; }
    }

    @media handheld {
    #page { background-image:display:none; }
    }

    I dont know which container you use to hold the background image however that one needs to be disabled.

    This of course won’t work on every device, but it will hit a decent amount.

    You can also try to add the code below to the bottom of striking/functions.php file


    require_once (THEME_PLUGINS . '/Browser.php');
    $browser = new Browser();
    if($browser->isMobile()){
    wp_enqueue_style('theme-handheld', THEME_CSS.'/handheld.css', false, false, 'all');
    }

    Then you can go to 'striking/css/' folder, create a new css file named handheld.css and put all you custom css code in there for the handheld devices.

    If none of this does work i have no solution for you.

    Best regards,
    Striking Team
    Paul
  • This sounds perfect. Thanks Paul!