draft new home page
This commit is contained in:
@@ -42,6 +42,21 @@ add_action( 'widgets_init', 'sewjoy_theme_widgets_init' );
|
||||
* Enqueue scripts and styles.
|
||||
*/
|
||||
function sewjoy_theme_scripts() {
|
||||
if ( is_front_page() ) {
|
||||
// Homepage is self-contained — only load the home stylesheet.
|
||||
wp_enqueue_style(
|
||||
'sewjoy-theme-style',
|
||||
get_stylesheet_uri()
|
||||
);
|
||||
wp_enqueue_style(
|
||||
'sewjoy-theme-home',
|
||||
get_template_directory_uri() . '/assets/css/home.css',
|
||||
array( 'sewjoy-theme-style' ),
|
||||
'1.0.5'
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
// Main theme stylesheet (style.css from theme root).
|
||||
wp_enqueue_style(
|
||||
'sewjoy-theme-style',
|
||||
|
||||
Reference in New Issue
Block a user