• Resolved tglt

    (@tglt)


    Hello Mark, thanks for the great plugin. I’m using it across my site to make the right sidebar move with the content. On one page however, I want the sidebar to not stick. How do I create this exception. I have tried using the .page-id-number in custom CSS, but I can’t get that to work. Thoughts? Thank you. TGLT

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi, thanks for trying my plugin! ??

    I’m not entirely sure if this will work, but you can give it a shot.

    If you have the page ID number, let’s say it’s 236, try entering this as your sticky element:

    page:not(.page-id-236) .my-element

    I think that should work.

    • This reply was modified 7 years, 9 months ago by Senff.
    Thread Starter tglt

    (@tglt)

    Thank you Mark.

    I have tried it, but no luck so far. I assume that goes in the custom CSS? Is there anything that needs to be declared in curly brackets after the statement? Please advise.

    eg. page:not(.page-id-27) .sticky-element-placeholder { ? }

    Cheers, T

    Actually, I was referring to entering that whole string as the Sticky Element in the plugin settings.

    So normally, you’d just enter .my-element or .navigation or whatnot, but to exclude any page, you’d add page:not(.page-id-27) in front of it.

    Thread Starter tglt

    (@tglt)

    Perfect! Worked like a charm. Thank you sir.

    Just a side note, the solution works great! Except that I have to change the first ‘page’ into ‘body’ so the selector works.

    @xmflsct Awrghhh you are correct of course. It should have been BODY not PAGE.

    • This reply was modified 7 years, 8 months ago by Senff.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Exception (No stickiness one page’s sidebar)’ is closed to new replies.