Skip to content

Commit

Permalink
fix remove no longer needed code from theme
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankaegy committed Jan 23, 2025
1 parent 1bac75d commit bd47d28
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions themes/10up-theme/includes/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,6 @@ function scripts() {
true
);

if ( is_page_template( 'templates/page-styleguide.php' ) ) {
wp_enqueue_script(
'styleguide',
TENUP_THEME_TEMPLATE_URL . '/dist/js/styleguide.js',
Utility\get_asset_info( 'styleguide', 'dependencies' ),
Utility\get_asset_info( 'styleguide', 'version' ),
true
);
}

/**
* Enqueuing shared.js is required to get css hot reloading working in the frontend
* If you're not shipping any shared js wrap this enqueue in a SCRIPT_DEBUG check.
Expand Down Expand Up @@ -224,22 +214,12 @@ function admin_styles() {
* @return void
*/
function styles() {

wp_enqueue_style(
'styles',
TENUP_THEME_TEMPLATE_URL . '/dist/css/frontend.css',
[],
Utility\get_asset_info( 'frontend', 'version' )
);

if ( is_page_template( 'templates/page-styleguide.php' ) ) {
wp_enqueue_style(
'styleguide',
TENUP_THEME_TEMPLATE_URL . '/dist/css/styleguide.css',
[],
Utility\get_asset_info( 'styleguide-style', 'version' )
);
}
}

/**
Expand Down

0 comments on commit bd47d28

Please sign in to comment.