Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1187522

    Niru2025
    Participant

    Hello
    I wanted to put a signup form & some buttons with a background below the homepage header menu. (I don’t want to put a static page for the homepage). I tried in the customizer -> Header widget area. But it shows a small “+” black button on the top right corner. It will not automatically visible to users. How to put a content band type bar on homepage only? with location Below the menu.
    Please help me.
    Thank you.

    #1187523

    Rupok
    Member

    Hi there,

    Thanks for writing in! You can try within Customize > Header > Topbar Content . Let’s provide your URL and a screenshot of what you are trying to add.

    Cheers!

    #1187592

    Niru2025
    Participant

    Hi.
    I uploaded an example screenshot. Topbar puts text above the header. I just want below the header.
    Thank you.

    #1187614

    Rue Nel
    Moderator

    Hello There,

    Thanks for providing the screenshots. You can edit your page and make use of the widget area. It is best that you use Cornerstone in building your page. You can easily insert a section and then drag the widget area element into that column. The widget area will allow you to insert any widgets into your page content.

    Hope this helps.

    #1188891

    Niru2025
    Participant

    Thank you for informing.
    I know how to use cornerstone.
    But My needs are
    1] I need my homepage with reading setting latest posts & not a static page.
    2]In my homepage I need to add a signup form below the menu.

    How to do this?
    I can’t able to use cornerstone for my homepage. Because my WordPress Reading Setting is latest posts & not a static page. (I don’t want to put my homepage as a static page) I tried In Customize – Header – topbar. But the Topbar puts texts above the menu. there is no option to display a sign up form ( or any texts or widgets) below the menu. Please instruct me how to do this?
    Do I need to add any codes in my functions.php?
    Thank you.

    #1188897

    Christopher
    Moderator

    Hi there,

    Bog page is not editable and its content generates automatically. But we can help you to move topbar and put it below navbar.

    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.

    Copy _meta.php from framework/views/{STACK} and put it in the same path inside child theme. Open the file,find following lines :

    <?php x_get_view( 'global', '_topbar' ); ?>
    <?php x_get_view( 'global', '_navbar' ); ?>

    And update it to:

    <?php x_get_view( 'global', '_navbar' ); ?>
    <?php x_get_view( 'global', '_topbar' ); ?>
    

    For example if you’re using icon stack, your final code would be like this :

    <?php
    
    // =============================================================================
    // VIEWS/ICON/WP-HEADER.PHP
    // -----------------------------------------------------------------------------
    // Header output for Icon.
    // =============================================================================
    
    ?>
    
    <?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( 'global', '_navbar' ); ?>
        <?php x_get_view( 'global', '_topbar' ); ?>    
        <?php x_get_view( 'icon', '_breadcrumbs' ); ?>
      </header>
    
      <?php x_get_view( 'global', '_slider-below' ); ?>

    Hope it helps.

    #1188903

    Niru2025
    Participant

    Hi.., Thank you for helping me. Definitely, I will review 5 stars for X theme.

    #1188906

    Christopher
    Moderator

    Glad we could help to help 🙂

    #1189084

    Niru2025
    Participant

    Thank you for informing the exact steps. I don’t know codings. Even though I followed your steps & successfully able to put the topbar into below the header menu. But I got a problem.

    This topbar is appearing on all posts & pages. I need to put a few attractive buttons on the Homepage only & that bar should not appear any pages or posts except the homepage.
    How to do this?
    Thank you

    #1189214

    Thai
    Moderator

    Hi There,

    Please provide us with your website URL so we can take a closer look.

    Thanks.

    #1189584

    Niru2025
    Participant
    This reply has been marked as private.
    #1189585

    Rad
    Moderator

    Hi there,

    Please change this line of code,

    <?php x_get_view( 'global', '_topbar' ); ?>

    to this

    <?php if ( is_home() ) x_get_view( 'global', '_topbar' ); ?>

    That should limit the bar to your blog home page only.

    Cheers!

    #1189716

    Niru2025
    Participant

    Thank you. Now everything is fine for me.

    #1189736

    Christian
    Moderator

    You’re welcome. Glad we could help. 🙂