Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1147794
    Wanikiiya
    Participant

    Hi guys,

    I’ve enabled one page navigation, created custom IDs and it works well.
    The thing is that I want it to be “fixed top”, but navbar has switched to “fixed left” by itself.
    I’ve tried to change settings, but nothing works, it’s stuck on the left side and it looks super ugly.
    Can you please have a look into this, I’ve completed my website and this is the last thing before going live.
    Thanks.

    I’ll send my login details in the next post.

    #1147796
    Wanikiiya
    Participant
    This reply has been marked as private.
    #1147815
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! I have checked your site and it turns out that you have added a custom function that sets the navbar to always as fixed left. Please remove this custom code in your child theme’s functions.php file

    if ( ! function_exists( 'x_get_navbar_positioning' ) ) :
      function x_get_navbar_positioning() {
    
        if ( x_is_one_page_navigation() ) {
          $output = 'fixed-left';
        } else {
          $output = x_get_option( 'x_navbar_positioning' );
        }
    
        return $output;
    
      }
      add_action( 'customize_save', 'x_get_navbar_positioning' );
    endif;

    After removing this code, you should have whatever is set in your customizer, Appearance > Customize > Header > Navbar Position.

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1147794 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>