How to add the search button in the topbar

Hello guys,

Can you please tell me how add the search button in the topbar of my website, right next - on the right side - to the Greek flag / language switcher?

Just to clarify that I already added some code (bellow) to my child theme (I added it in wp-content --> themes --> x-child --> framework --> views --> global --> _topbar.php).

So the _topbar.php has now this:

<?php

// =============================================================================
// VIEWS/GLOBAL/_TOPBAR.PHP
// -----------------------------------------------------------------------------
// Includes topbar output.
// =============================================================================

?>

<?php if ( x_get_option( 'x_topbar_display', '' ) == '1' ) : ?>

  <div class="x-topbar">
    <div class="x-topbar-inner x-container max width">
      <?php if ( x_get_option( 'x_topbar_content' ) != '' ) : ?>
      <p class="p-info"><?php echo x_get_option( 'x_topbar_content' ); ?></p>
      <?php endif; ?>
      <?php x_social_global(); ?>

      <ul class="language-switcher right">
      	<?php pll_the_languages( array( 'show_flags' => 1,'show_names' => 0 ) );?>
      </ul>

    </div>
  </div>

<?php endif; ?>

Also I have this in the in the Child Theme’s style.css file.

.masthead-stacked .x-brand {
    width: 100% !important;
    float: left !important;
    display: block !important;
}

Thanks in advance,
Stergios (worldvespa.net)

Hi there,

Search functionality is available in Navbar menu in our theme. You used the Superfly menu which replaces the original menu of our theme and it is not possible to have it.

That means the search functionality of X is not available for you while you use the Superfly menu. You will need to search for an alternative solution.

Thank you for your understanding.

Thanks for the reply!

You are welcome!