Support » Plugin: Swifty Bar, sticky bar by WPGens » Swifty Bar Progress Bar Not Working

  • Hi there,

    I’ve installed your Swifty bar plugin and most of it is working okay, although I’m having a few issues. I can’t get the progress bar to display at all – I think it’s due to the following:

    Uncaught TypeError: a.indexOf is not a function

    that I’m getting in the console. I’m using jquery 3.1.0 – is that a problem?

    Also, on some posts (which use a custom template) I’m getting ‘time to read: <1m’ when it’s a clearly long post. I’ve added divs for ttr_start, ttr_end, and sbprogress_bar – is there something else I need to do?


    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter andyseaton83


    Hi there,

    The problem seems to come from the fact that I’m using a custom post template with ACF – so I’m adding custom fields into a repeater to the create the markup. Swifty bar seems to work fine if I just create a vanilla lipsum post with no custom post template. Can you think of any way to get it working with the custom post template?



    Plugin Author Goran87


    Hi Andy,

    sorry for late reply. But in case someone else comes up with same problem, you need to find a filter that would place <div class=”ttr_start”></div> at the start and <div class=”ttr_end”></div> at the end of ACF fields. Then it would calculate for any content between those 2 divs.

    Hope this helps, I did not check if there are some acf filters, but you can also place it in theme, before repeater or acf content and after.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Swifty Bar Progress Bar Not Working’ is closed to new replies.