• Resolved slideaway

    (@modsuperstar)


    I’ve been trying to figure out why Post Views Counter isn’t loading in my wp_footer. I have a bit of a weird scenario as I have 2 templates running on the same site(mid-migration to a new template for a big site). The views counter works fine with the old template, but not for the new template. It loads the CSS and admin bar section, but just not the stuff in the footer. I definitely have wp_footer included in my template, so I’m not really sure what’s amiss.

    I attempted to enqueue the frontend.js and got it to load, but it doesn’t include the REST API info like I’m seeing on the old template. I’ve attempted in my dev environment to make the new template the primary, but it doesn’t seem to make a difference.

    I’d prefer to keep my URLs private, so I can send via email or IM if someone wanted to take a look.

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

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

    (@dfactory)

    Hi,

    Are you sure all the other required theme functions are there in the new template.
    I’m talking especially about wp_head().
    Any debug log entries?

    We have some other potential ideas, you may try reaching to us via https://dfactory.eu/ website.

    Thread Starter slideaway

    (@modsuperstar)

    I finally figured out what it was. I dequeued jQuery because I was pulling it in elsewhere and it’s apparently tied to this for inclusion.

        wp_dequeue_script( 'jquery' );
        wp_deregister_script( 'jquery' );
        // Removes the parent themes stylesheet and scripts from inc/enqueue.php
    
    • This reply was modified 2 years, 4 months ago by slideaway.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘frontend.js and REST info not loading’ is closed to new replies.