• Resolved bobsled

    (@bobsled)


    I had to change my TOC pluging recently, as the one I was using is no longer supported.

    Until then, I had the TOC showing in the sidebar on desktop and inline in posts on mobile.

    I’ve now changed plugins, and I’m using Easy Table of Contents.

    However, with this plugin, the desktop is fine, but when I inject the TOC into mobile posts, (with js or css) it only appears when I’m logged in.

    In cached pages, it doesn’t appear in mobile.

    I tried on my testing site that uses W3 Total Cache, and it works fine.

    Am I missing a setting for this? I checked, but couldn’t find a setting that might help.

    Any ideas you have on this issue would be most appreciated.

    • This topic was modified 6 months ago by bobsled.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    I don’t kow if you are using a plugin that is adding things based on device type by utilizing wp_is_mobile() function. If so, I will suggest you to not do that.

    I have personally used https://www.ads-software.com/plugins/table-of-contents-plus/ and didn’t find any issues.

    Don’t see why https://www.ads-software.com/plugins/easy-table-of-contents/ plugin would cause any issues.

    Thread Starter bobsled

    (@bobsled)

    Hi,

    Thanks for getting back on this issue.

    I’ve checked all my plugins, and I can’t find any that are using wp_is_mobile().

    The only plugin I use that differenciates between desktop and mobile is Ad Inserter. But it’s inserting client side, so I don’t think it is the cause of the problem.

    If I set Easy Table of Contents to add a TOC inline in both desktop and mobile, it works fine when cached.

    It’s only when I set the desktop as a sidebar widget, and mobile inline that I strike the problem.

    Have you used this set up succesfully?

    To me it seems as though I need the TOC inline on desktop for it to work on mobile when cached.

    Any thoughts?

    Plugin Contributor iSaumya

    (@isaumya)

    It’s only when I set the desktop as a sidebar widget, and mobile inline that I strike the problem.

    Yes cause now the plugin is using wp_is_mobile() to detect when it’s desktop and when it’s mobile. Don’t do this. Use the inline mode across the board. One setting for all devices.

    Thread Starter bobsled

    (@bobsled)

    Okay,

    Thanks for confirming the problem.

    Looks like I’ll have to revert to my previous settings.

    Plugin Contributor iSaumya

    (@isaumya)

    Yes you should.

    Thread Starter bobsled

    (@bobsled)

    I changed to inline on desktop and mobile a few days ago. All fine now. Thanks.

    Plugin Contributor iSaumya

    (@isaumya)

    Glad to hear that. ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.