THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.8 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <?php
  2. if ( ! defined( 'ABSPATH' ) ) { exit; }
  3. // Set up theme support
  4. /////////////////////
  5. function elementor_hello_theme_setup() {
  6. add_theme_support( 'menus' );
  7. add_theme_support( 'post-thumbnails' );
  8. add_theme_support( 'automatic-feed-links' );
  9. add_theme_support( 'title-tag' );
  10. add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) );
  11. add_theme_support( 'custom-logo', array(
  12. 'height' => 70,
  13. 'width' => 350,
  14. 'flex-height' => true,
  15. 'flex-width' => true,
  16. ) );
  17. add_theme_support( 'woocommerce' );
  18. load_theme_textdomain( 'elementor-hello-theme', get_template_directory() . '/languages' );
  19. }
  20. add_action( 'after_setup_theme', 'elementor_hello_theme_setup' );
  21. // Theme Scripts & Styles
  22. function elementor_hello_theme_scripts_styles() {
  23. wp_enqueue_style( 'elementor-hello-theme-style', get_stylesheet_uri() );
  24. }
  25. add_action( 'wp_enqueue_scripts', 'elementor_hello_theme_scripts_styles' );
  26. // Register Elementor Locations
  27. //////////////////////
  28. /////////////////////
  29. function elementor_hello_theme_register_elementor_locations( $elementor_theme_manager ) {
  30. $elementor_theme_manager->register_all_core_location();
  31. };
  32. add_action( 'elementor/theme/register_locations', 'elementor_hello_theme_register_elementor_locations' );
  33. // Remove WP Embed
  34. function elementor_hello_theme_deregister_scripts() {
  35. wp_deregister_script( 'wp-embed' );
  36. }
  37. add_action( 'wp_footer', 'elementor_hello_theme_deregister_scripts' );
  38. // Remove WP Emoji
  39. ////////////////////////
  40. ////////////////////////
  41. ////////////////////////
  42. remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
  43. remove_action( 'wp_print_styles', 'print_emoji_styles' );
  44. remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
  45. remove_action( 'admin_print_styles', 'print_emoji_styles' );