• Resolved sturmwarnung

    (@sturmwarnung)


    Hi,

    great plugin, exactly what I was looking for, so, thanks!. Only problem I have is that the category pages also get the background image. Any way to avoid that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ishitaka

    (@ishitaka)

    Sorry, the category archive is not supported.
    I’d like to support in the future, but I have no plans.

    Thread Starter sturmwarnung

    (@sturmwarnung)

    Thank you for the answer, but I think it is a misunderstanding.

    The background images are displayed on category pages. I think they should not?

    Plugin Author ishitaka

    (@ishitaka)

    Sorry, I misunderstood. My English ability is not native level.

    A new version (1.2.0) added ‘xo_post_background_style’ filter.
    Adding the following code to functions.php will not output the background image in the category.

    function my_post_background_style( $style, $image_src ) {
    	if ( is_category() )
    		return false;
    	return $style;
    }
    add_filter( 'xo_post_background_style', 'my_post_background_style', 10, 2 );
    Thread Starter sturmwarnung

    (@sturmwarnung)

    Thank you, it works perfectly now!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Background image shows up on category archives’ is closed to new replies.