Tagged: x
-
AuthorPosts
-
January 24, 2017 at 11:58 am #1343458
brendanduggan11ParticipantHello,
I would like my blog page to have the header pushed to the very top of the blog index page and the blog postings. Also would like to have it black. I dont want it fixed like my webpage.
I would like to leave my home page as is.
Thank you
January 24, 2017 at 2:41 pm #1343641
JadeModeratorHi there,
Please add this code in the customizer:
.blog .x-navbar.x-navbar-fixed-top, .single-post .x-navbar.x-navbar-fixed-top { position: relative; background-color: #000 !important; }Hope this helps.
January 24, 2017 at 3:31 pm #1343736
brendanduggan11ParticipantOk, I would also like it on my posts.
For example this page
http://www.sunshinesalsatours.com/2017/01/10/guide-to-cali-nightlife/
thank you
January 24, 2017 at 9:38 pm #1344175
NicoModeratorHi There
I could see that it is working well already on that page.
Let us know how it goes if you need anything else.
Thanks.
January 25, 2017 at 9:20 am #1344770
brendanduggan11ParticipantOk, the thing is that I would like the header to initially load as the black header without any transitions on both the blog page and any posts. Just a black header with white text, unfixed. As of now the page must be scrolled for the header to be pushed to the top. I would like it to load pushed to the top already.
Thank You.
January 25, 2017 at 12:17 pm #1345044
JadeModeratorHI there,
Please update this code:
.blog .x-navbar.x-navbar-fixed-top, .single-post .x-navbar.x-navbar-fixed-top { position: relative; background-color: #000 !important; } .blog .x-navbar .desktop .x-nav > li > a > span, .single-post .x-navbar .desktop .x-nav > li > a > span { color: #000 !important; }to
.blog .x-navbar, .single-post .x-navbar { position: relative; background-color: #000 !important; } .blog .x-navbar .desktop .x-nav > li > a > span, .single-post .x-navbar .desktop .x-nav > li > a > span { color: #fff!important; }Hope this helps.
January 25, 2017 at 8:59 pm #1345739
brendanduggan11ParticipantThanks it helps. but now we just need to push the navbar to the top of the blog posts pages:
EX:
http://www.sunshinesalsatours.com/2017/01/10/guide-to-cali-nightlife/
The main blog page is fine.
Thank you
January 26, 2017 at 12:18 am #1345889
Paul RModeratorHi,
You can add this under Custom > Edit Global CSS in the Customizer.
.single-post .masthead { height: 90px; }Hope that helps.
January 26, 2017 at 1:55 pm #1346728
brendanduggan11Participant.blog .x-navbar,
.single-post .x-navbar {
position: relative;
background-color: #000 !important;
}.blog .x-navbar .desktop .x-nav > li > a > span,
.single-post .x-navbar .desktop .x-nav > li > a > span {
color: #fff!important;
}Sorry, i lied. It seems the above code effected my main page turning the navbar white. I want to keep the main page(www.sunshinesalsatours.com) as is….
As of now the http://www.sunshinesalsatours.com/blog as well as the blog single post pages are pushed to the top of the page and are un-fixed as I would like. …
However, they are set to transition from white to black.
I would like to set them as a static color. ie. no transistion. Black with white text for now.
Thank you
January 26, 2017 at 2:16 pm #1346748
JoaoModeratorHi There,
The code above should not affect your home page.
I am a bit confused about what you are trying to fix, can you be pontual and point:
1- Change this on home…
2- Change this on blog..
Also please provide your admin credentials so we can check your code.
Thanks
January 26, 2017 at 3:23 pm #1346839
brendanduggan11ParticipantThis reply has been marked as private.January 26, 2017 at 8:29 pm #1347190
Rue NelModeratorHello There,
Thanks for updating in!
#1] You will need to update the JS code and use this:
jQuery(document).ready(function($){ $(window).scroll(function(){ if ($(this).scrollTop() > 0) { $('.home .x-navbar').css("background-color", "rgba(255,255,255,0.75"); $( '.home .x-navbar' ).addClass( 'shadow' ); } else { $('.home .x-navbar').css("background-color", "rgba(255,255,255,0.0"); $( '.home .x-navbar' ).removeClass( 'shadow' ); } }); });#2] Please put the custom css again or make use of this code:
.blog .x-navbar, .archive .x-navbar, .single-post .x-navbar { position: relative; background-color: #000 !important; } .blog .x-navbar .desktop .x-nav > li > a > span, .archive .x-navbar .desktop .x-nav > li > a > span .single-post .x-navbar .desktop .x-nav > li > a > span { color: #fff!important; }Please keep in mind that @ media css block should be at the end of other custom css. For example;
element { // your styling } @media(max-width: 767px) { element { // your styling } }Hope this helps. Please let us know how it goes.
January 27, 2017 at 11:00 am #1347941
brendanduggan11ParticipantOk, well atleast we are making progress!
But I have a few concerns: I see that the code is basically to transition the navbar from one color to another. Yes, I need this for my main page.
But, for my blog page and posts pages I just want a static no frills nav bar. Is there any way to distinguish this in the code. I,m concerned about page performance for unnecessary transitions in my blog navbar from say white to white or black to black…. when it could just be a static nav bar with white background and black text or black background and white text etc.
Also, How would I change the text color on transition if I am unable to do the above.
For example now, i have the background white with black text on pageload but when i scroll the text turns white (meanwhile the background stays white making the text indistuingishable) and logo appears. I would like the text to stay black when the page is scrolled and…. for the logo to appear when the page is loaded right from the get go.
Let me re-iterate… the above is solely for the blog page and posts pages… my main page I want to keep as is.
Thank you for helping me with this, I know it is a bit complicated to understand.
Thanks again,
Brendan
January 27, 2017 at 11:03 pm #1348573
ChristopherModeratorHi there,
But, for my blog page and posts pages I just want a static no frills nav bar. Is there any way to distinguish this in the code. I,m concerned about page performance for unnecessary transitions in my blog navbar from say white to white or black to blackā¦. when it could just be a static nav bar with white background and black text or black background and white text etc.
Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.
Remove this code :
.blog .x-navbar.x-navbar-fixed-top .desktop .x-nav > li > a > span, .single-post .x-navbar.x-navbar-fixed-top .desktop .x-nav > li > a > span { color: #fff !important; }Hope it helps.
January 28, 2017 at 8:29 am #1348845
brendanduggan11ParticipantAn example:
a white navbar , black test, the logo is always there, no transitions,
thank you
…
remember this is only for the blog main page (www.sunshinesalsatours/blog) and posts pages such as (http://www.sunshinesalsatours.com/2017/01/10/guide-to-cali-nightlife/)
the http://www.sunshinesalsatours.com leave as is
….
Also the code you mentioned is not in the custom css
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1343458 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
