Loading WordPress styles

No Matter what I do I cannot get the styles to load from the function. The page goes blank or the styles don’t change. I have a folder called assets in the same level as style.css

function pbo_theme_assets() {

    wp_enqueue_style( 'acf', get_stylesheet_directory_uri() . '/assets/css/acf.css' ) );

}
add_action( 'wp_enqueue_scripts', 'pbo_theme_assets' );

Related posts

1 comment

  1. You have extra closing bracket on line 2

    function pbo_theme_assets() {
        wp_enqueue_style('acf',get_stylesheet_directory_uri().'/assets/css/acf.css');
    }
    add_action( 'wp_enqueue_scripts', 'pbo_theme_assets' );
    

    except that everything matches wp standards

Comments are closed.