Hello There,
Thanks for updating in!
You have placed the code in the wrong file. Please remove the code in the header.php file. The proper way of doing it should be with the following steps:
Once you have your child theme active and ready, please follow the following steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new file
<?php
// =============================================================================
// VIEWS/ETHOS/WP-HEADER.PHP
// -----------------------------------------------------------------------------
// Header output for Ethos.
// =============================================================================
?>
<?php x_get_view( 'global', '_header' ); ?>
<?php x_get_view( 'global', '_slider-above' ); ?>
<header class="<?php x_masthead_class(); ?>" role="banner">
<?php x_get_view( 'ethos', '_post', 'carousel' ); ?>
<?php x_get_view( 'global', '_topbar' ); ?>
<?php x_get_view( 'global', '_navbar' ); ?>
<div id="custom-fixed-menu">
<?php ubermenu( '5776' , array( 'theme_location' => 'secondary-menu' ) ); ?>
</div>
<?php x_get_view( 'ethos', '_breadcrumbs' ); ?>
</header>
<?php x_get_view( 'global', '_slider-below' ); ?>
<?php x_get_view( 'ethos', '_landmark-header' ); ?>
3] Save the file named as wp-header.php
4] Upload this file to your server in the child theme’s folder wp-content/themes/x-child/framework/legacy/cranium/headers/views/ethos/
.
You will have to create the folder path since it does not exist in your child theme yet. This is the correct way of doing it and as you can see, the code added is right under the navbar. Once you have this in place, you can easily manipulate the position of the custom menu by adjusting the width and if it will be flush, floating or displayed as block or as a row.
Hope this make sense.