Tagged: x
-
AuthorPosts
-
September 23, 2016 at 12:36 am #1187522
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.September 23, 2016 at 12:39 am #1187523Hi 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!
September 23, 2016 at 2:01 am #1187592Hi.
I uploaded an example screenshot. Topbar puts text above the header. I just want below the header.
Thank you.September 23, 2016 at 2:16 am #1187614Hello 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.
September 24, 2016 at 1:18 am #1188891Thank 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.September 24, 2016 at 1:33 am #1188897Hi 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.
September 24, 2016 at 1:40 am #1188903Hi.., Thank you for helping me. Definitely, I will review 5 stars for X theme.
September 24, 2016 at 1:53 am #1188906Glad we could help to help 🙂
September 24, 2016 at 8:16 am #1189084Thank 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 youSeptember 24, 2016 at 12:50 pm #1189214Hi There,
Please provide us with your website URL so we can take a closer look.
Thanks.
September 25, 2016 at 2:05 am #1189584This reply has been marked as private.September 25, 2016 at 2:10 am #1189585Hi 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!
September 25, 2016 at 7:18 am #1189716Thank you. Now everything is fine for me.
September 25, 2016 at 7:45 am #1189736You’re welcome. Glad we could help. 🙂
-
AuthorPosts