Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #903363
    Madeny
    Participant

    Hi, I looked everywhere in the forum about how to fixed left “x-one-page-navigation” as my homepage. so can you please help fix that.

    again how to have a post description with essential grid?

    Best regards

    #904090
    Zeshan
    Member

    Hi there @madeny,

    Thanks for writing in!

    By default, when the One Page Navigation is activated, navbar is set to fixed top. If you want it to use default navbar position selection from the Customizer, you can follow this workaround:

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    After that, add following code in your child theme’s functions.php file:

    // Get Navbar Positioning
    // =============================================================================
    
    if ( ! function_exists( 'x_get_navbar_positioning' ) ) :
      function x_get_navbar_positioning() {
    
        $output = x_get_option( 'x_navbar_positioning', 'static-top' );
    
        return $output;
    
      }
      add_action( 'customize_save', 'x_get_navbar_positioning' );
    endif;
    

    Thank you!

    #904341
    Madeny
    Participant

    Sorry but still not working!!

    #904346
    Madeny
    Participant
    This reply has been marked as private.
    #904485
    Madeny
    Participant

    Never mind!! my goals was to have different navbar background color, but I just figure it out by targeting page id.

    The easier way to get page “id or post” is to set your permalink to first option from top. and you you’ll see “http:yourdomain.com/?p=123” i.e 123 is your page id.

    Thanks for the support.

    #905230
    Paul R
    Moderator

    Hi,

    Glad you were able to figure it out.

    Have a great day!

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