/*
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.5.1.1791474694
Updated: 2026-10-08 15:51:34

*/





/**
 * Display GTranslate as a floating button
 * across the entire WordPress website.
 */
add_action('wp_footer', 'custom_gtranslate_floating_button');

function custom_gtranslate_floating_button() {
    if (shortcode_exists('gtranslate')) {
        echo '<div id="custom-gtranslate-floating">';
        echo do_shortcode('[gtranslate]');
        echo '</div>';
    }
}

add_action('wp_head', 'custom_gtranslate_floating_styles');

function custom_gtranslate_floating_styles() {
    ?>
    <style>
        #custom-gtranslate-floating {
            position: fixed;
            right: 20px;
            bottom: 20px;
            z-index: 99999;
            width: auto;
            max-width: calc(100vw - 30px);
        }

        #custom-gtranslate-floating select {
            max-width: 100%;
        }

        @media (max-width: 767px) {
            #custom-gtranslate-floating {
                right: 12px;
                bottom: 12px;
            }
        }
    </style>
    <?php
}
