新增两个页面

This commit is contained in:
2026-06-25 22:35:37 +08:00
parent dfae260a1e
commit 59a418e94b
6 changed files with 502 additions and 103 deletions
+53 -1
View File
@@ -52,7 +52,59 @@ function sewjoy_theme_scripts() {
'sewjoy-theme-home',
get_template_directory_uri() . '/assets/css/home.css',
array( 'sewjoy-theme-style' ),
'1.0.5'
'1.0.6'
);
return;
}
if ( is_page_template( 'page-templates/page-shop.php' ) ) {
// Shop / product list page — reuses the home canvas + nav/footer,
// adds the filter bar, product card family, layout switcher, pagination.
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.6'
);
wp_enqueue_style(
'sewjoy-theme-shop',
get_template_directory_uri() . '/assets/css/shop.css',
array( 'sewjoy-theme-home' ),
'1.0.0'
);
return;
}
if ( is_page_template( 'page-templates/page-design.php' ) ) {
// Design Yours / Custom Design Flow landing — reuses the home
// canvas + nav/footer + bond-card markup; adds the 3-step splash
// carousel, the three-series wrapper, and Featured Designs cards.
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.6'
);
wp_enqueue_style(
'sewjoy-theme-design',
get_template_directory_uri() . '/assets/css/design.css',
array( 'sewjoy-theme-home' ),
'1.0.0'
);
wp_enqueue_script(
'sewjoy-theme-design',
get_template_directory_uri() . '/assets/js/design.js',
array( 'jquery' ),
'1.0.0',
true
);
return;
}