Site logo

Archived topic

element shortcodes before main content issue

9 replies · Started by Daniele on March 10, 2019

Viewing posts 1–10 of 10

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

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.

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;
    }
}

I did it, it did it :D
Cheers David!

You're welcome = :)

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

Try this instead:

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

Tnx Leo, now it works perfectly!

No problem :)

This archived topic is closed to new replies.