wp-content/themes/seadesign/inc/custom_enqueue.php
// Load WP Bootstrap Sass scripts (header.php)
Load WP Bootstrap Sass scripts (header.php)
Load WP Bootstrap Sass scripts ( header . php )
function codigo_header_scripts()
{
    if ($GLOBALS['pagenow'] != 'wp-login.php' && !is_admin()) {
        $mainBundleURI     = get_template_directory_uri() . '/dist/main.bundle.js';
        $mainBundlePath    = get_template_directory() . '/dist/main.bundle.js';
        $mainBundleVersion = (file_exists($mainBundlePath) ? date("ymd-Gis", filemtime($mainBundlePath)) : '1.2.0');
        wp_register_script('codigo-scripts', $mainBundleURI, array('jquery'), $mainBundleVersion);
        wp_enqueue_script( array('codigo-scripts') );
    }
}
function codigo_header_scripts ( ) { if ( $ GLOBALS [ 'pagenow' ] != 'wp-login.php' && ! is_admin ( ) ) { $ mainBundleURI = get_template_directory_uri ( ) . '/dist/main.bundle.js' ; $ mainBundlePath = get_template_directory ( ) . '/dist/main.bundle.js' ; $ mainBundleVersion = ( file_exists ( $ mainBundlePath ) ? date ( " ymd-Gis " , filemtime ( $ mainBundlePath ) ) : '1.2.0' ) ; wp_register_script ( 'codigo-scripts' , $ mainBundleURI , array ( 'jquery' ) , $ mainBundleVersion ) ; wp_enqueue_script ( array ( 'codigo-scripts' ) ) ; } }
Load WP Bootstrap Sass scripts (header.php)
Load WP Bootstrap Sass scripts ( header . php )
// Custom scripts // Create a version number based on the last time the file was modified // Enqueue it!