123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * Theme functions and definitions
- *
- * @package HelloElementorChild
- */
- include( get_stylesheet_directory() . '/mark.php' );
- add_theme_support( 'post-thumbnails', array( 'page' ) );
- /**
- * Load child theme css and optional scripts
- *
- * @return void
- */
- function hello_elementor_child_enqueue_scripts() {
- wp_enqueue_style(
- 'hello-elementor-child-style',
- get_stylesheet_directory_uri() . '/style.css',
- [
- 'hello-elementor-theme-style',
- ],
- '1.0.0'
- );
- wp_enqueue_script(
- 'hello-elementor-child-scripts',
- get_stylesheet_directory_uri() . '/scripts.js',
- [
- 'jquery',
- ],
- '1.0.0'
- );
- }
- add_action( 'wp_enqueue_scripts', 'hello_elementor_child_enqueue_scripts' );
- add_filter('hello_elementor_page_title', '__return_false');
- add_filter( 'body_class', function( $classes ) {
- return array_merge( $classes, [ 'q-app-styles' ] );
- } );
|