[Resolved] CSS for moving down sidebar?

Home Forums Support [Resolved] CSS for moving down sidebar?

Home Forums Support CSS for moving down sidebar?

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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!

    #513053
    Tom
    Lead 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 🙂

    #513073
    gedosan

    Interesting – added it to “After Header” hook and its completely disappeared?!

    #513079
    Tom
    Lead Developer
    Lead Developer

    Remove the negative margin you added here:

    .grid-container.yoast-breadcrumb {
        margin-top: -20px;
        margin-bottom: 15px;
        font-size: 14px;
    }
    #513087
    gedosan

    all sorted – any way i can exclude from the homepage?

    #513089
    Tom
    Lead Developer
    Lead Developer

    In your hooks, do this:

    <?php if ( ! is_front_page() ) : ?>
        Your code here
    <?php endif; ?>
    #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; ?>

    #513124
    Tom
    Lead 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 🙂

    #513125
    gedosan

    here you go cheers:

    <?php if ( function_exists(‘yoast_breadcrumb’) ) : ?>

    <?php yoast_breadcrumb( ‘<p id=”breadcrumbs”>’,'</p>’ ); ?>

    <?php endif; ?>

    #513130
    Tom
    Lead 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; ?>
    #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

    #513160
    gedosan

    dont worry fixed now…thanks!

    #513411
    Tom
    Lead Developer
    Lead Developer

    Sounds like the missing container stuff I mentioned. Glad you got it working! 🙂

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.