[Resolved] Hook content positioning / bottom margin

Home Forums Support [Resolved] Hook content positioning / bottom margin

Home Forums Support Hook content positioning / bottom margin

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #261985
    Hazel

    Hi Tom
    I am trying to use the Before Header hook to place a slider immediately above the primary navigation. I am using the code:

    <?php if ( is_page( 'Home' ) ) : ?>
    [cycloneslider id="fp-header"]
    <?php endif; ?>

    The trouble is that the slider is left aligned and there is a margin between it and the navigation. The site is here: https://www.allanjackson.net/staging1/ Setting the site with a single container and no padding or spacing doesn’t seem to eliminate the gap.

    Could you suggest solutions?
    Thanks

    #261987
    Leo
    Staff
    Customer Support

    Hi Allan,

    Try this CSS:

    .cycloneslider-template-standard {
        margin: 0 auto;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know.

    #261991
    Hazel

    Perfect. Thanks Leo.

    #261992
    Leo
    Staff
    Customer Support

    You’re welcome 🙂

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