• Resolved ShippeR

    (@shipper)


    Hello Ron Angelo,
    I want ask you how is possible to disable download background image in mobile version of website.

    Here is example, when background is loaded under visible page. I don’t need image there. For me will be better simple grey colour.
    I want disable it because visitors are on 3G internet and I want save their monthly FUP. I think, there is way in edit functions.php, am I true?

    I am already using Child theme, so I can edit function.php in needed.
    Thank’s, ShippeR

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author ronangelo

    (@ronangelo)

    Try adding this on your child-theme’s functions.php:

    add_action( 'after_setup_theme', 'ra_remove_mobile_bg_image', 11 ); 
    
    function ra_remove_mobile_bg_image() {
    
       if ( wp_is_mobile() ) {
          remove_theme_support( 'custom-background' );
       }
    
    }
    Thread Starter ShippeR

    (@shipper)

    It work’s good. Than’s Angelo!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to disable background image in mobile version’ is closed to new replies.