Site logo

Archived topic

Make sure the 2nd component is not visible

7 replies · Started by Oguz on March 21, 2023

Viewing posts 1–8 of 8

On the site that I sent you privately. A second component appears on the right. but it should not appear. because that component is Lucky wp content plus . Contents add-on. It shouldn't appear normally. because the table of contents does not exist on the homepage. we have to lose it. from the homepage. it should only appear as a sidebar inside the posts.

https://i.imgur.com/aWTFhNU.png

When you enter the site, there is a white part under the most read text. that part should not be visible. It should only appear in the content.

Hi there,

It's not something GP can control.

However, you can try this CSS to hide it on non-single-post pages.

body:not(.single-post) #right-sidebar #block-8 {
    display: none;
}

but hidden. this time. as you go down. most reads don't move. but the table of contents in the text is moving.
so i mean. I want it to move on the right bar when I scroll down the screen.
this works in post but not in homepage

yes. how will I do ? what should i add?

Hi there,

how is the LuckWP Contents widget added to the site ?

from the components
as I said . The problem with it has been fixed. I just want the right component to move with it as the page goes down.

You will need to add this AFTER your current sticky CSS:

.home .inside-right-sidebar aside:first-child {
    position: -webkit-sticky;
    position: sticky;
    top: 10px;
}

So it applies to the first child widget

This archived topic is closed to new replies.