Tagged: x
-
AuthorPosts
-
March 16, 2017 at 11:51 am #1409843
nathanr_ParticipantHi,
I have a few questions about customising the blog:
1. I have added a transparent header on the site which turns black when you scroll down, however on the blog page and all the associated blog pages I don’t want it to be transparent at all, just be black from the start, is there a way to make it not apply to the blog pages. The code I used to make the header transparent is:
css:
/* make header transparent – HEADER
———————————*/
@media (min-width: 950px){
.x-topbar, .x-navbar, .x-logobar {
background-color: transparent !important;
}
}Javascript:
jQuery(document).ready(function($) {
$(window).scroll(function() {
var scrollPos = $(window).scrollTop();
navbar = $(‘.x-navbar’);if (scrollPos > 100) {
navbar.addClass(‘alt-color’);
} else {
navbar.removeClass(‘alt-color’);
}
});
});2. I added the below code to add padding to the post pages:
/* add padding to blog post pages – BLOG
———————————*/.single-post {
margin-left: 17% !important;
margin-right: 17% !important;
}The code works great however it also adds padding to the footer . . how can I make it exclude the footer?
Thank you
NathanMarch 16, 2017 at 11:57 am #1409850
nathanr_ParticipantThis reply has been marked as private.March 16, 2017 at 4:15 pm #1410160
JoaoModeratorHi There,
1- Please add the following code to Appereance Customizer Custom CSS
.blog .x-topbar,.blog .x-navbar,.blog .x-logobar { background-color: black !important; }If you would like the posts to be black as well add instead
.blog .x-topbar,.blog .x-navbar,.blog .x-logobar, .single-post .x-topbar,.single-post .x-navbar,.single-post .x-logobar { background-color: black !important; }For the footer , please add:
.single-post .x-colophon.top { margin-left: 0% !important; margin-right: 0% !important; }Hope it helps
Joao
March 17, 2017 at 6:59 am #1410931
nathanr_ParticipantThis reply has been marked as private.March 17, 2017 at 6:26 pm #1411572
FriechModeratorHi There,
Remove this from your custom CSS.
.single-post { margin-left: 17% !important; margin-right: 17% !important; }Add this instead:
.single-post .x-container.offset { width: 88%; }Hope it helps, Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1409843 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
