Home › Forums › Support › CSS for moving down sidebar? This topic has 12 replies, 2 voices, and was last updated 6 years, 1 month ago by Tom. Viewing 13 posts - 1 through 13 (of 13 total) Author Posts March 6, 2018 at 3:37 am #512759 gedosan HI Since adding the breadcrumb I need to shift the right hand sidebar down a few pixels so it lines up with the main container. Could you tell me the CSS to use please? Thanks! March 6, 2018 at 8:53 am #513053 TomLead Developer Lead Developer It might be better to add the breadcrumb code into the “After Header” hook. That will push both the content and sidebar down the same amount. Let me know if you need more info 🙂 March 6, 2018 at 9:03 am #513073 gedosan Interesting – added it to “After Header” hook and its completely disappeared?! March 6, 2018 at 9:06 am #513079 TomLead Developer Lead Developer Remove the negative margin you added here: .grid-container.yoast-breadcrumb { margin-top: -20px; margin-bottom: 15px; font-size: 14px; } March 6, 2018 at 9:13 am #513087 gedosan all sorted – any way i can exclude from the homepage? March 6, 2018 at 9:15 am #513089 TomLead Developer Lead Developer In your hooks, do this: <?php if ( ! is_front_page() ) : ?> Your code here <?php endif; ?> March 6, 2018 at 9:39 am #513113 gedosan sorry man, do i need to stitch these together then? <?php if ( function_exists(‘yoast_breadcrumb’) ) : ?> <?php yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,'</p>’ ); ?> <?php endif; ?> <?php if ( ! is_front_page() ) : ?> Your code here <?php endif; ?> March 6, 2018 at 9:51 am #513124 TomLead Developer Lead Developer What’s the exact code you have in there now? It should include a grid-container etc.. Let me know and I’ll tweak it for you 🙂 March 6, 2018 at 9:54 am #513125 gedosan here you go cheers: <?php if ( function_exists(‘yoast_breadcrumb’) ) : ?> <?php yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,'</p>’ ); ?> <?php endif; ?> March 6, 2018 at 9:58 am #513130 TomLead Developer Lead Developer Hmm, seems to be missing some HTML I see on your site. Either way, you would do this: <?php if ( function_exists( 'yoast_breadcrumb' ) && ! is_front_page() ) : ?> <?php yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ); ?> <?php endif; ?> March 6, 2018 at 10:35 am #513157 gedosan gone from home page (cool), but looks a bit messed up now (over to the left and missing CSS by looks of it) on other pages March 6, 2018 at 10:37 am #513160 gedosan dont worry fixed now…thanks! March 6, 2018 at 5:16 pm #513411 TomLead Developer Lead Developer Sounds like the missing container stuff I mentioned. Glad you got it working! 🙂 Author Posts Viewing 13 posts - 1 through 13 (of 13 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In