-
AuthorPosts
-
November 20, 2014 at 11:56 am #149346
Team TraceurParticipantHello,
Can I get the Revolution slider above my nav bar, but below my logo bar? I am using a stacked look. My page is under construction at the moment so if you need to see the page I will have to get you into the backend.
Cheers 🙂
November 21, 2014 at 5:19 am #149790
ZeshanMemberHi there,
Thank you for writing in!
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, copy the file wp-content/themes/x/framework/views/renew/wp-header.php in your child theme’s folder /framework/views/renew/, open the file in a text editor and replace entire code with following:
<?php // ============================================================================= // VIEWS/RENEW/WP-HEADER.PHP // ----------------------------------------------------------------------------- // Header output for Renew. // ============================================================================= ?> <?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', '_topbar' ); ?> <?php x_get_view( 'global', '_navbar' ); ?> </header> <?php if ( !x_get_logo_navigation_layout() == 'stacked' ): ?> <?php x_get_view( 'global', '_slider-below' ); ?> <?php endif; ?> <?php x_get_view( 'renew', '_landmark-header' ); ?>Next, copy the file wp-content/themes/x/framework/views/global/_navbar.php in your child theme’s folder /framework/views/global/, open the copied file in a text editor and replace entire code with following:
<?php // ============================================================================= // VIEWS/GLOBAL/_NAVBAR.PHP // ----------------------------------------------------------------------------- // Outputs the navbar. // ============================================================================= $navbar_position = x_get_navbar_positioning(); $logo_nav_layout = x_get_logo_navigation_layout(); $is_one_page_nav = x_is_one_page_navigation(); ?> <?php if ( ( $navbar_position == 'static-top' || $navbar_position == 'fixed-top' || $is_one_page_nav ) && $logo_nav_layout == 'stacked' ) : ?> <div class="x-logobar"> <div class="x-logobar-inner"> <div class="x-container-fluid max width"> <?php x_get_view( 'global', '_brand' ); ?> </div> </div> <!-- end .x-logobar-inner --> </div> <!-- end .x-logobar --> <?php x_get_view( 'global', '_slider-below' ); ?> <div class="x-navbar-wrap"> <div class="<?php x_navbar_class(); ?>"> <div class="x-navbar-inner"> <div class="x-container-fluid max width"> <?php x_get_view( 'global', '_nav', 'primary' ); ?> </div> </div> <!-- end .x-navbar-inner --> </div> <!-- end .x-navbar --> </div> <!-- end .x-navbar-wrap --> <?php else : ?> <div class="x-navbar-wrap"> <div class="<?php x_navbar_class(); ?>"> <div class="x-navbar-inner"> <div class="x-container-fluid max width"> <?php x_get_view( 'global', '_brand' ); ?> <?php x_get_view( 'global', '_nav', 'primary' ); ?> </div> </div> <!-- end .x-navbar-inner --> </div> <!-- end .x-navbar --> </div> <!-- end .x-navbar-wrap --> <?php endif; ?>Hope this helps. 🙂
Thank you.
December 9, 2015 at 10:00 am #699356
cooper2121ParticipantWill the same code work for integrity? Id like the logobar to be on top, then the slider, then the navbar. while i scroll down, the logobar remains static while the slider and the navbar scroll as normal. Once the navbar reaches the logobar (to appear as the stacked look that i have now) the navbar pushes up the logobar to then have a static top navbar (as I have now). Is this possible? Also, I only want this on my landing page. For the rest of the pages, the normal logobar then navbar stack that comes standard works best. I hope this isnt way to confusing.
December 9, 2015 at 10:10 am #699378
cooper2121ParticipantThis reply has been marked as private.December 9, 2015 at 2:25 pm #699697
Nabeel AModeratorHi there,
Thanks for writing in! For the integrity theme, you can create a new file and name it wp-header.php and paste the following code inside:
<?php // ============================================================================= // VIEWS/INTEGRITY/WP-HEADER.PHP // ----------------------------------------------------------------------------- // Header output for Integrity. // ============================================================================= ?> <?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', '_topbar' ); ?> <?php x_get_view( 'global', '_navbar' ); ?> <?php x_get_view( 'integrity', '_breadcrumbs' ); ?> </header> <?php if ( !x_get_logo_navigation_layout() == 'stacked' ): ?> <?php x_get_view( 'global', '_slider-below' ); ?> <?php endif; ?> <?php x_get_view( 'integrity', '_landmark-header' ); ?>Upload this file to \x-child\framework\views\integrity\ directory in your Child Theme. Then you can create a new file with the name of _navbar.php and paste the following code inside:
<?php // ============================================================================= // VIEWS/GLOBAL/_NAVBAR.PHP // ----------------------------------------------------------------------------- // Outputs the navbar. // ============================================================================= $navbar_position = x_get_navbar_positioning(); $logo_nav_layout = x_get_logo_navigation_layout(); $is_one_page_nav = x_is_one_page_navigation(); ?> <?php if ( ( $navbar_position == 'static-top' || $navbar_position == 'fixed-top' || $is_one_page_nav ) && $logo_nav_layout == 'stacked' ) : ?> <div class="x-logobar"> <div class="x-logobar-inner"> <div class="x-container-fluid max width"> <?php x_get_view( 'global', '_brand' ); ?> </div> </div> <!-- end .x-logobar-inner --> </div> <!-- end .x-logobar --> <?php x_get_view( 'global', '_slider-below' ); ?> <div class="x-navbar-wrap"> <div class="<?php x_navbar_class(); ?>"> <div class="x-navbar-inner"> <div class="x-container-fluid max width"> <?php x_get_view( 'global', '_nav', 'primary' ); ?> </div> </div> <!-- end .x-navbar-inner --> </div> <!-- end .x-navbar --> </div> <!-- end .x-navbar-wrap --> <?php else : ?> <div class="x-navbar-wrap"> <div class="<?php x_navbar_class(); ?>"> <div class="x-navbar-inner"> <div class="x-container-fluid max width"> <?php x_get_view( 'global', '_brand' ); ?> <?php x_get_view( 'global', '_nav', 'primary' ); ?> </div> </div> <!-- end .x-navbar-inner --> </div> <!-- end .x-navbar --> </div> <!-- end .x-navbar-wrap --> <?php endif; ?>Upload this file to \x-child\framework\views\global\ directory in your child theme as well.
Let us know how this goes!
December 10, 2015 at 8:46 am #701062
cooper2121ParticipantThis reply has been marked as private.December 10, 2015 at 8:48 am #701068
cooper2121ParticipantThis reply has been marked as private.December 10, 2015 at 8:49 am #701072
cooper2121ParticipantSorry for the posts, it wont let me upload a full screen snapshot. ill try again.
December 10, 2015 at 1:16 pm #701413
Nabeel AModeratorHi again,
Thank you for providing the screenshots, I was able to find the mistake you’ve done by replicating it on my localhost. You have not copied the wp-header.php code completely. You’ve missied
<?phpby mistake in the start of the code. Please make sure you completely copy and paste the code. I’m pasting the code here again so you can copy this again:<?php // ============================================================================= // VIEWS/INTEGRITY/WP-HEADER.PHP // ----------------------------------------------------------------------------- // Header output for Integrity. // ============================================================================= ?> <?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', '_topbar' ); ?> <?php x_get_view( 'global', '_navbar' ); ?> <?php x_get_view( 'integrity', '_breadcrumbs' ); ?> </header> <?php if ( !x_get_logo_navigation_layout() == 'stacked' ): ?> <?php x_get_view( 'global', '_slider-below' ); ?> <?php endif; ?> <?php x_get_view( 'integrity', '_landmark-header' ); ?>Please make sure you copy this completely and paste it in wp-header.php file of your child theme.
Let us know how this goes!
December 10, 2015 at 2:18 pm #701482
cooper2121ParticipantI very much appreciate your assistance. It’s looking great and I think I’m almost there! The last thing would be to make the logobar remain where it is on top while scrolling down, until the navbar replaces it. How would I go about doing this?
December 10, 2015 at 8:54 pm #701898
FriechModeratorHi There,
Further customizations from here would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities.
Thanks for understanding.
December 11, 2015 at 11:01 am #702922
cooper2121ParticipantThanks for your help! I appreciate your help to this point!
December 11, 2015 at 12:54 pm #703073
NicoModeratorThank you so much for understanding.
Feel free to ask us again if it is not beyond the scope of our limitation
Thanks. 🙂 Have a great day! 🙂
December 18, 2015 at 1:48 pm #712822
uncleshneersonParticipantHi, all!
I need help againi read this https://community.theme.co/forums/topic/trying-to-combine-inline-and-stacked-layouts-with-revolution-slider-behind/ and can combine ‘INLINE’ and ‘STACKED’ layouts with diferent logo.
But i can’t replace Logo bar (with big logo) in “stacked layout” to revolution slider. or simple hide it…
I try paint what i needmy site http://point11.co/realestate/
Can you help me?
Thx
December 18, 2015 at 1:50 pm #712825
uncleshneersonParticipantsorry my file was so big (
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-149346 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
