• Hi ,
    Thanks for this nice features plugin.
    I’m using WP 5.9.3 with Kemet theme (and only a few plugins). It appears that no CSS is loaded for flex-posts (flex-posts.css, flex-posts-min.css) so that each post is appearing at left side of page but not in a grid (no “display:flex” is applied to the fp-post fp-flex div).
    At present my development website is not yet available on-line.

    What could I do to help debug this? (I’m used to styling, css, php, …)

    Regards, Christophe

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Christophe Seguinot

    (@seguinot)

    Hi
    it looks like that css is not enqueued in block.php

    function flex_posts_enqueue_block_assets() {
    	if ( is_admin() ) {
    		wp_enqueue_style( 'flex-posts' );
    	}
    	if ( is_singular() ) {
    		$id = get_the_ID();
    		if ( has_block( 'flex-posts/list', $id ) ) {
    			wp_enqueue_style( 'flex-posts' );
    		}
    	}
    }
    add_action( 'enqueue_block_assets', 'flex_posts_enqueue_block_assets' );
    

    Temporary forcing wp_enqueue_style( 'flex-posts' ); there the correct flex layout is applied.

    Plugin Author Tajam

    (@tajam)

    Hi, we have tried using WP 5.9.3 with Kemet theme, but didn’t have this problem. The css is loaded correctly. Where did you add the block? Inside a page/post or in other places?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Css not loaded with Kemet theme’ is closed to new replies.