wp/wp-content/themes/IN-MOTION-package-u1-child/functions.php
author ymh <ymh.work@gmail.com>
Fri, 05 Sep 2025 18:52:52 +0200
changeset 22 8c2e4d02f4ef
parent 17 34716fd837a4
permissions -rw-r--r--
Update WordPress to latest version (6.7) - Sync WordPress core files from latest release - Updated admin interface, blocks, and core functionality - Enhanced block editor features and performance - Security updates and bug fixes - Preserved custom wp-content directory and configuration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<?php
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
function my_theme_enqueue_styles() {
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
    // $parent_style = 'parent-style'; // we do not do this because in-motion doesnot correctly enqueue styles
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    // wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
    wp_enqueue_style( 'IN-MOTION-package-u1-child-style',
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
        get_stylesheet_directory_uri() . '/style.css',
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
        // array( $parent_style ),
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
        array( ),
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
        wp_get_theme()->get('Version')
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
    );
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
}
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
cf61fcea0001 resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
17
34716fd837a4 add ressources for a live page
ymh <ymh.work@gmail.com>
parents: 7
diff changeset
    16
function additional_scripts() {
34716fd837a4 add ressources for a live page
ymh <ymh.work@gmail.com>
parents: 7
diff changeset
    17
    wp_enqueue_script( 'dash-js', get_stylesheet_directory_uri() . '/js/dash.all.min.js','',true );
34716fd837a4 add ressources for a live page
ymh <ymh.work@gmail.com>
parents: 7
diff changeset
    18
}
34716fd837a4 add ressources for a live page
ymh <ymh.work@gmail.com>
parents: 7
diff changeset
    19
add_action( 'wp_enqueue_scripts', 'additional_scripts' );