wp/wp-content/themes/IN-MOTION-package-u1-child/functions.php
author ymh <ymh.work@gmail.com>
Mon, 08 Sep 2025 19:44:41 +0200
changeset 23 417f20492bf7
parent 17 34716fd837a4
permissions -rw-r--r--
Update Docker configuration and plugin versions - Upgrade MariaDB from 10.6 to 11 with auto-upgrade support - Add WordPress debug environment variable to FPM container - Update PHP-FPM Dockerfile base image - Update Include Mastodon Feed plugin with bug fixes and improvements - Update Portfolio plugin (v2.58) with latest translations and demo data enhancements - Remove old README.md from Mastodon Feed plugin 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>

<?php
function my_theme_enqueue_styles() {

    // $parent_style = 'parent-style'; // we do not do this because in-motion doesnot correctly enqueue styles

    // wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'IN-MOTION-package-u1-child-style',
        get_stylesheet_directory_uri() . '/style.css',
        // array( $parent_style ),
        array( ),
        wp_get_theme()->get('Version')
    );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );

function additional_scripts() {
    wp_enqueue_script( 'dash-js', get_stylesheet_directory_uri() . '/js/dash.all.min.js','',true );
}
add_action( 'wp_enqueue_scripts', 'additional_scripts' );