• Resolved snowme

    (@snowme)


    Hi,

    The sidebar category colored squares don’t show up on my custom post pages and on the 404 page. Can you provide a fix?

    Thanks

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

    (@nobita)

    Hi @snowme

    It is not displayed for custom posts.

    Please try below

    example post_type ‘news’

    add_filter('body_class','post_type_category_color');
    
    function post_type_category_color( $classes ) {
    	$post_type = get_post_type( );
    	
    	if ( 'yes' == raindrops_warehouse_clone( 'raindrops_color_coded_category' ) && 'news' == $post_type ) {
    			$classes[] = 'rd-cat-em';
    	}
    	if ( 'yes' == raindrops_warehouse_clone( 'raindrops_color_coded_category' ) && is_404() ) {
    			$classes[] = 'rd-cat-em';
    	}
    	return $classes;
    	
    }

    Thank you

    • This reply was modified 4 years, 11 months ago by nobita.
    • This reply was modified 4 years, 11 months ago by nobita.
    Thread Starter snowme

    (@snowme)

    That worked great! Thank you again for your quick and reliable support!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sidebar Category Colored Squares Missing Some Pages’ is closed to new replies.