Create simple hello bar on elementor without plugin

first add this code on function.php or snippets plugin and then create new section like image below, or download json file have I made.

add_action( 'wp_head', function () { ?>
<script>
    jQuery( document ).ready( function( $ ) {
        $("#hidehello").click(function(){
        $("#hellobar").hide();
      });
    });
    
</script>
<style>
    
</style>
<?php } );
Create new section on elementor
add id on container hellobar
klik tab advance and add id ( hidehello ) on css field
add icon for button close hellobar
add icon as button close and add id ( hellobar ) on css field





Tags