[Resolved] element shortcodes before main content issue

Home Forums Support [Resolved] element shortcodes before main content issue

Home Forums Support element shortcodes before main content issue

  • This topic has 9 replies, 3 voices, and was last updated 5 years ago by Leo.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #834671
    Daniele

    Hi all,
    I inserted this code

    <div class="grid-33 before-content-left">
       [widget id="youtube-channel-8"]
    </div>
    <div class="grid-33 before-content-center">
        [widget id="youtube-channel-4"]
    </div>
    <div class="grid-33 before-content-right">
        [widget id="youtube-channel-9"]
    </div>

    in an element to be showed before the content section just in the homepage.

    It works but the main content overlaps the hook (see http://www.80s.it) …how can i fix it?

    thanks in advance,
    Daniele

    #834721
    David
    Staff
    Customer Support

    Hi there,

    which hook did you use?
    Try the before_main_content hook. It should position it above the content which is using masonry that is effecting this.

    #834728
    Daniele
    #834742
    David
    Staff
    Customer Support

    So the container is relatively positioned so give this CSS a shot:

    @media (min-width: 1024px) {
        .separate-containers .site-main>.generate-columns-container {
            top: 220px;
        }
    }
    #834751
    Daniele

    I did it, it did it πŸ˜€
    Cheers David!

    #834756
    David
    Staff
    Customer Support

    You’re welcome = πŸ™‚

    #852786
    Daniele

    Hey David, I just noticed that space affect all the website’s pages, and i actually need that just on the homepage.
    how can I exclude all pages but home?

    tnx in advance

    #852924
    Leo
    Staff
    Customer Support

    Try this instead:

    @media (min-width: 1024px) {
        .home.separate-containers .site-main>.generate-columns-container {
            top: 220px;
        }
    }
    #853166
    Daniele

    Tnx Leo, now it works perfectly!

    #853387
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

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