Code highlight infinite scroll

  • Code highlight doesn’t seem to work well with infinite scrolling. The posts showing in the initially loaded page have proper code highlighting, but any posts loaded by the infinite scrolling mechanism don’t have code highlighting at all. It seems like the JavaScript code used for highlighting is not called again after loading more posts.

    The blog I need help with is: (visible only to logged in users)

  • Thanks for alerting us to this issue. I’ve reported it to our developers so they can investigate and will keep you posted here.

  • I’ve spoken with the developer who handles the code highlighter, and he needs to make some adjustments so that it works correctly with Infinite Scroll. You may want to disable Infinite Scroll in the meantime, under Settings > Reading:

    https://kichik.wordpress.com/wp-admin/options-reading.php

  • Thank you Kathryn. I actually tried disabling Infinite Scroll, but the result is still the same. It doesn’t seem to load the older posts in a new page. It just tacks it on to the same page and doesn’t run the code highlighting again. Might that be something specific to the theme I’m using?

  • Hi there – I’ve added an empty text widget to more effectively disable Infinite Scroll, however the code highlighting on subsequent pages after the first is still not working correctly. I’ve asked our developer to have a look to see whether there’s any workaround they can think of in the meantime.

  • The topic ‘Code highlight infinite scroll’ is closed to new replies.