* Darshan Holidays Theme Functions */ if ( ! defined( 'ABSPATH' ) ) { exit; } add_action( 'after_setup_theme', function() { add_theme_support( 'title-tag' ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'html5', [ 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script' ] ); register_nav_menus( [ 'primary' => __( 'Primary Menu', 'darshan-holidays' ), ] ); } ); add_action( 'wp_enqueue_scripts', function() { wp_enqueue_style( 'darshan-google-fonts', 'https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap', [], null ); wp_enqueue_style( 'darshan-holidays-style', get_stylesheet_uri(), [ 'darshan-google-fonts' ], '1.0.0' ); } ); /** * Prevent wpautop from breaking custom HTML sections in imported pages. */ add_filter( 'the_content', function( $content ) { if ( is_page() && ( strpos( $content, '