• Resolved mrthiemann

    (@mrthiemann)


    Hey Community,

    i want to disable the background-image in ../storefront/inc/storefront-functions.php

    Now i have to comment out these two lines:

    function storefront_homepage_content_styles() {
    	$featured_image   = get_the_post_thumbnail_url( get_the_ID() );
    	/**$background_image = ''; **/
    
    	if ( $featured_image ) {
    		$background_image = 'url(' . esc_url( $featured_image ) . ')';
    	}
    
    	$styles = array();
    
    	if ( '' !== $background_image ) {
    	/**	$styles['background-image'] = $background_image; **/
    	}
    
    	$styles = apply_filters( 'storefront_homepage_content_styles', $styles );
    
    	foreach ( $styles as $style => $value ) {
    		echo esc_attr( $style . ': ' . $value . '; ' );
    	}
    }

    but I think it’s easier …can anyone help me?
    First and foremost, the background image in our blog posts bothers me. This “destroys” the design…

    Thanks, Karsten

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘background-image function storefront_homepage_content_styles’ is closed to new replies.