Support » Plugin: Easy Table of Contents » Override element.style and remove the 30px

  • Resolved lijitimit

    (@lijitimit)


    Hi, loving this plugin!
    I’ve created a sidebar specifically for affixed TOC. I’m trying to remove the element.style (I think) is being added by the plugin in front.js. Basically, it is adding 30px to the top to deal with the adminbar, but is added even without. Working on local machine but here’s a screenshot.
    Screenshot

    Is it possible to override with css?

    I’ve tried:

    .after-header-1 .is_stuck[style] {
    	top: 0 !important;
    }

    and

    .after-header-1 .is_stuck {
    	top: 0 !important;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Steven

    (@shazahm1hotmailcom)

    @lijitimit

    On the TOC Settings admin page, change the smooth scroll offset from 30 to 0. Hope that helps!

    Thanks for the super fast reply!
    I actually had done that. It’s not the smooth scroll issue, but the actual positioning of the heading (not the the offset for the anchor. I did however, figure it out. I think I got a little excited with my selectors, and added in the widget area class 🙂

    This worked.

    .is_stuck {
    	top: 0 !important;
    }

    Thanks again for a great plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Override element.style and remove the 30px’ is closed to new replies.