Hi there,
I’m trying to add one more navigation bar above the main menu on this website www.elastic.io, so that it looks like this:
The blue part is this navbar that I’m trying to add. Now, when I go to the Appearance -> Customize, I don’t see the Header option, only the Menus option, and nothing I did there made a new topbar appear. I also tried to activate the topbar option from X -> Theme Options -> Headers -> Miscellaneous, still nothing.
I’ve read here on the forum that it might be because we have a custom header, but I don’t know how to find that out. I was not the one who created the Child Theme’s template, plus it is possible to edit the main menu from the Appearance -> Customize just fine. It’s just not possible to add a topbar on top of it.
I also tried adding a _topbar.php file under child-theme -> framework -> views -> global with the following code:
<?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(); ?>
</div>
</div>
<?php endif; ?>
But that didn’t change anything either, plus I don’t know what else to do with that. Do I need to register it somehow in functions.php?
By the way, I also thought this might be due to a plugin conflict, but I deactivated plugins on Staging one by one to check that and it didn’t change a thing, the topbar was still not showing.
Can you please-please help?