Skip to content

Commit

Permalink
Don't render homepage, except on the homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
karissademi committed Oct 25, 2024
1 parent 9ccb5b0 commit 1d573cf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions wp/wp-content/themes/phila.gov-theme/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2342,10 +2342,13 @@ function load_vue_site_wide_alerts() {
wp_enqueue_style('site-wide-alerts-app-css', 'https://www.phila.gov/embedded/site-wide-alerts/'.$phila_environment.'/css/app.css?cachebreaker');
}
function load_vue_homepage() {

if (is_front_page()) {
global $phila_environment;
wp_enqueue_script('vue-homepage-chunk-js', 'https://www.phila.gov/embedded/homepage/'.$phila_environment.'/js/chunk-vendors.js?cachebreaker', array(), null, true );
wp_enqueue_script('vue-homepage-app-js', 'https://www.phila.gov/embedded/homepage/'.$phila_environment.'/js/app.js?cachebreaker', array(), null, true );
wp_enqueue_style('vue-homepage-app-css', 'https://www.phila.gov/embedded/homepage/'.$phila_environment.'/css/app.css?cachebreaker');
wp_enqueue_script('vue-homepage-chunk-js', 'https://www.phila.gov/embedded/homepage/'.$phila_environment.'/js/chunk-vendors.js?cachebreaker', array(), null, true );
wp_enqueue_script('vue-homepage-app-js', 'https://www.phila.gov/embedded/homepage/'.$phila_environment.'/js/app.js?cachebreaker', array(), null, true );
wp_enqueue_style('vue-homepage-app-css', 'https://www.phila.gov/embedded/homepage/'.$phila_environment.'/css/app.css?cachebreaker');
}
}


Expand Down

0 comments on commit 1d573cf

Please sign in to comment.