at path:
ROOT
/
wp-content
/
themes
/
understrap
/
inc
/
enqueue.php
run:
R
W
Run
block-editor.php
1.98 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
class-wp-bootstrap-navwalker.php
20.65 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
custom-comments.php
3.16 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
custom-header.php
1.66 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
customizer.php
8.68 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
deprecated.php
3.12 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
editor-color-palette.json
298 By
2026-02-09 12:38:27
R
W
Run
Delete
Rename
editor.php
2.81 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
enqueue.php
1.5 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
extras.php
8.3 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
hooks.php
1.52 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
jetpack.php
1.74 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
pagination.php
3.59 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
setup.php
2.77 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
style-wpcom.css
125 By
2026-02-09 12:38:27
R
W
Run
Delete
Rename
template-tags.php
8.31 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
theme-settings.php
1.26 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
widgets.php
6.1 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
woocommerce.php
5.62 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
wpcom.php
1.12 KB
2026-02-09 12:38:27
R
W
Run
Delete
Rename
error_log
up
📄
enqueue.php
Save
<?php /** * Understrap enqueue scripts * * @package Understrap */ // Exit if accessed directly. defined( 'ABSPATH' ) || exit; if ( ! function_exists( 'understrap_scripts' ) ) { /** * Load theme's JavaScript and CSS sources. */ function understrap_scripts() { // Get the theme data. $the_theme = wp_get_theme(); $theme_version = $the_theme->get( 'Version' ); $bootstrap_version = get_theme_mod( 'understrap_bootstrap_version', 'bootstrap4' ); $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; // Grab asset urls. $theme_styles = "/css/theme{$suffix}.css"; $theme_scripts = "/js/theme{$suffix}.js"; if ( 'bootstrap4' === $bootstrap_version ) { $theme_styles = "/css/theme-bootstrap4{$suffix}.css"; $theme_scripts = "/js/theme-bootstrap4{$suffix}.js"; } $css_version = $theme_version . '.' . filemtime( get_template_directory() . $theme_styles ); wp_enqueue_style( 'understrap-styles', get_template_directory_uri() . $theme_styles, array(), $css_version ); wp_enqueue_script( 'jquery' ); $js_version = $theme_version . '.' . filemtime( get_template_directory() . $theme_scripts ); wp_enqueue_script( 'understrap-scripts', get_template_directory_uri() . $theme_scripts, array(), $js_version, true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } } // End of if function_exists( 'understrap_scripts' ). add_action( 'wp_enqueue_scripts', 'understrap_scripts' );