/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.0.1.1777378419
Updated: 2026-04-28 12:13:39

*/
// Remove the WordPress version meta tag from the HTML head
remove_action('wp_head', 'wp_generator');

// Function to remove the version query parameter from enqueued scripts and styles
function remove_version_from_assets($src) {
    // Check if the source has a version query parameter
    if (strpos($src, '?ver=') !== false) {
        // Remove the version parameter from the URL
        $src = remove_query_arg('ver', $src);
    }
    // Return the modified source URL
    return $src;
}
// Apply the function to script URLs (JavaScript)
add_filter('script_loader_src', 'remove_version_from_assets', 999);
// Apply the function to style URLs (CSS)
add_filter('style_loader_src', 'remove_version_from_assets', 999);

// Function to remove the generator tag from the RSS feed
function