Skip to main content
deleted 110 characters in body
Source Link

It seems to me best to separate styles, from scripts and other assets. This worked:

function my_theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_parent_theme_file_uri() . 'style.css' );
}
add_action( 'my_theme_enqueue_styles', 'wp_enqueue_styles' );

function my_theme_enqueue_assets() {
    wp_enqueue_script( 'behavior', get_theme_file_uri( 'behavior.js' ), array(), null, true );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_assets' );

It seems to me that the best approach is to separate styles, from scripts && other assets.

That is to say, styles has their place and scripts && other assets has their place.

This worked:

function my_theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_parent_theme_file_uri() . 'style.css' );
}
add_action( 'my_theme_enqueue_styles', 'wp_enqueue_styles' );

function my_theme_enqueue_assets() {
    wp_enqueue_script( 'behavior', get_theme_file_uri( 'behavior.js' ), array(), null, true );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_assets' );

It seems to me that the best approach is to separate styles, from scripts && other assets.

That is to say, styles has their place and scripts && other assets has their place.

It seems to me best to separate styles, from scripts and other assets. This worked:

function my_theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_parent_theme_file_uri() . 'style.css' );
}
add_action( 'my_theme_enqueue_styles', 'wp_enqueue_styles' );

function my_theme_enqueue_assets() {
    wp_enqueue_script( 'behavior', get_theme_file_uri( 'behavior.js' ), array(), null, true );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_assets' );
added 1 character in body
Source Link

This worked:

function my_theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_parent_theme_file_uri() . 'style.css' );
}
add_action( 'my_theme_enqueue_styles', 'wp_enqueue_styles' );

function my_theme_enqueue_assets() {
    wp_enqueue_script( 'behavior', get_theme_file_uri( 'behavior.js' ), array(), null, true );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_assets' );

It seems to me that the best approach is to separate styles, from scripts && other assets.

That is to say, styles has their place and scripts && other assets ashas their place.

This worked:

function my_theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_parent_theme_file_uri() . 'style.css' );
}
add_action( 'my_theme_enqueue_styles', 'wp_enqueue_styles' );

function my_theme_enqueue_assets() {
    wp_enqueue_script( 'behavior', get_theme_file_uri( 'behavior.js' ), array(), null, true );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_assets' );

It seems to me that the best approach is to separate styles, from scripts && other assets.

That is to say, styles has their place and scripts && other assets as their place.

This worked:

function my_theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_parent_theme_file_uri() . 'style.css' );
}
add_action( 'my_theme_enqueue_styles', 'wp_enqueue_styles' );

function my_theme_enqueue_assets() {
    wp_enqueue_script( 'behavior', get_theme_file_uri( 'behavior.js' ), array(), null, true );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_assets' );

It seems to me that the best approach is to separate styles, from scripts && other assets.

That is to say, styles has their place and scripts && other assets has their place.

[Edit removed during grace period]; deleted 1 character in body
Source Link

This worked:

function my_theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uriget_parent_theme_file_uri() . 'style.css' );
}
add_action( 'my_theme_enqueue_styles', 'wp_enqueue_styles' );

function my_theme_enqueue_assets() {
    wp_enqueue_script( 'behavior', get_theme_file_uri( 'behavior.js' ), array(), null, true );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_assets' );

It seems to me that the best approach is to separate styles, from scripts && other assets.

That is to say, styles has their place and scripts && other assets as their place.

This worked:

function my_theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . 'style.css' );
}
add_action( 'my_theme_enqueue_styles', 'wp_enqueue_styles' );

function my_theme_enqueue_assets() {
    wp_enqueue_script( 'behavior', get_theme_file_uri( 'behavior.js' ), array(), null, true );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_assets' );

It seems to me that the best approach is to separate styles, from scripts && other assets.

That is to say, styles has their place and scripts && other assets as their place.

This worked:

function my_theme_enqueue_styles() {
    wp_enqueue_style( 'parent-style', get_parent_theme_file_uri() . 'style.css' );
}
add_action( 'my_theme_enqueue_styles', 'wp_enqueue_styles' );

function my_theme_enqueue_assets() {
    wp_enqueue_script( 'behavior', get_theme_file_uri( 'behavior.js' ), array(), null, true );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_assets' );

It seems to me that the best approach is to separate styles, from scripts && other assets.

That is to say, styles has their place and scripts && other assets as their place.

Source Link
Loading