Tagged: x
-
AuthorPosts
-
April 26, 2016 at 3:03 pm #900914
fabipaoliniParticipantHi guys! I realize there’s a lot of info in the forum regarding this question, but I’m still a bit lost! (sorry! I’m a designer, not really a developer).
Ok, so basically, what I want to do, is have the transparent nav bar on top of an image (not a slider), and once you scroll out of the image, the navbar to have a color. Something similar to this:Can you guide me through this? I’m just starting on the site built with integrity (but I could change it if it’s necessary). I put “transparent background” in the options, but how do I get the image behind it?
Thanks a lot!
FabiApril 27, 2016 at 6:48 am #901953
Paul RModeratorHi Fabi,
Thanks for writing in!
To achieve that, you can add this under Custom > Edit Global CSS in the Customizer.
.x-navbar.x-navbar-fixed-top { background-color:#fff; position: fixed !important; height: 50px !important; transition: .5s all; } .x-navbar { background-color:transparent; width:100%; position:absolute; height: 90px; }You may change background color and height to achieve your desired result.
Hope that helps.
April 27, 2016 at 4:23 pm #903058
fabipaoliniParticipantThanks! It worked perfectly! 🙂
April 28, 2016 at 5:12 am #903831
Paul RModeratorYou’re welcome! 🙂
May 2, 2016 at 2:07 pm #909620
fabipaoliniParticipantHi! So, I have 2 other questions:
1. I need to add a topbar and would like its background to be transparent and the image that’s added in the section through cornerstone to show up in the background (hope that made sense). So basically, it would be the top bar and nav bar being transparent with the image from the page in the back. Can you help?
2. On the blog page, the blog header comes on top of the navbar, how do I change this?
Thanks!
FabiMay 2, 2016 at 10:01 pm #910091
Nabeel AModeratorHey Fabi,
1. Regretfully this isn’t a feature offered by X. It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.
2. You want to display blog heading on top of the Navbar? Please share the URL of your site so we can take a look?
Thanks for understanding. Take care!
May 5, 2016 at 2:59 pm #937043
fabipaoliniParticipantThis reply has been marked as private.May 5, 2016 at 11:36 pm #978148
LelyModeratorHi Fabi,
Thank you for the credentials.
The issue is caused by the following custom CSS:.x-navbar { background-color:transparent; width:100%; position:absolute; height: 90px; border-bottom: none; box-shadow: none; }Please remove
position:absolute;. It should be like this:.x-navbar { background-color:transparent; width:100%; height: 90px; border-bottom: none; box-shadow: none; }Then add the following CSS instead to move the image on homepage behind the navigation:
.home div#x-section-1 { margin-top: -91px !important; }Hope this helps.
May 6, 2016 at 12:24 pm #978846
fabipaoliniParticipantThanks! Worked perfectly. Now, I want to do this:
.home div#x-section-1 {
margin-top: -91px !important;
}with all of the sections (except blog page), what should I put instead of .home?
thanks!May 6, 2016 at 7:47 pm #979598
FriechModeratorHi There,
You can update the code to:
body:not(.blog) div#x-section-1 { margin-top: -91px !important; }Hope it helps, Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-900914 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
