• Resolved Rookie

    (@alriksson)


    Possibility to use the js off-set function for non joli jumplinks. Instead of adding a separate code block for offset on the site we could utalize jolis exsisting offset. But at the moment it only consider joli-classed headlines.

    In my example I use jumplinks from other places as well outside the TOC.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WPJoli

    (@wpjoli)

    Hi,

    The offset on a jumplink is unfortunately bound to the scope of joli toc. Handling outside links could lead to unexpected behaviour.

    What you can do however is use the joli toc js var joli_toc_vars.jumpto_offset and integrate it into a tiny block of js to suit your needs.

    Cheers!

    Thread Starter Rookie

    (@alriksson)

    @wpjoli Thanks, I understand but what is the joli toc js vars listening to? The css class or? Can’t I add this to all other elements I want to utilize the jumpto_offset on or it wont work? To use the helper class instead of adding another code block with the same code and change the helper class as I assume this is how you tie it to joli? As it’s limited to the_content output.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Utalize Joli’s off-set function for non joli jumplinks’ is closed to new replies.