Hello @Hessner,
Thanks for writing in! You will need to load the modal search also so that after clicking the icon the modal search popup will display. Assuming that the child theme is set up, please add the following code in your child theme’s functions.php file
// Navbar Searchform Popup
// =============================================================================
if ( ! function_exists( 'x_navbar_searchform_overlay' ) ) :
function x_navbar_searchform_overlay() { ?>
<div class="x-searchform-overlay">
<div class="x-searchform-overlay-inner">
<div class="x-container max width">
<form method="get" id="searchform" class="form-search center-text" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label for="s" class="cfc-h-tx tt-upper"><?php _e( 'Type and Press “enter” to Search', '__x__' ); ?></label>
<input type="text" id="s" class="search-query cfc-h-tx center-text tt-upper" name="s">
</form>
</div>
</div>
</div>
<?php
}
add_action( 'x_before_site_end', 'x_navbar_searchform_overlay' );
endif;
Please note that custom coding is outside the scope of our support. Issues that might arise from the use of custom code and further enhancements should be directed to a third party developer.
We would loved to know if this has work for you. Thank you.