• Resolved lifehappensoutside

    (@lifehappensoutside)


    I installed Jetpack and everything works well except the like button at the bottom of each post on my site. It takes a while to load the button on pages but sometimes it eventually works. On posts it never works (or possibly takes days?).

    I tried disabling all pulgins and switching browsers and the like button was still loading.

    I also switched my theme to twenty twelve and the like button loaded quickly on all posts and pages. I talked to my theme designer and he thinks the problem isn’t one he can help with.

    Anything I can do to the theme (which is wonderful in all other ways) to fix this up?

    From what I’ve read it seems like Jetpack’s like button isn’t very compatible with jQuery?

    Thanks for the help.

    https://www.ads-software.com/plugins/jetpack/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Richard Archambault

    (@richardmtl)

    I’m sorry for the late reply, I didn’t see your post last week.

    In any case, I do see the Likes loading on some of your posts, but not on all. Were some of your posts imported from a WordPress.com site, by any chance? There is a known bug with imported posts and likes.

    However, on this post, I see 2 Javascript errors:

    https://life-happens-outside.com/who-am-i-again/

    The js errors will prevent the Likes from loading properly. I am not sure what is inserting these lines of code in your site:

    jQuery("#top_most, #media_nav").sticky({ topSpacing: 0 });

    and

    jQuery(window).load(function(){
          jQuery('.flexslider').flexslider({
            animation: "slide" ,
            start: function(slider){
              jQuery('body').removeClass('loading');
            }});});

    They do look like they were put in by the theme though, but I can’t know that for sure. I’d bring it to the theme author’s attention again, and if he can’t or won’t fix it, we’ll look at how to fix it ourselves; I won’t be helping you correct the error though, I’ll just tell you how to remove that code, and doing so may or may not break other functionality for the theme.

    Let me know what he says!

    Thread Starter lifehappensoutside

    (@lifehappensoutside)

    Thanks for getting back to me!

    I just sent him your message and we’ll see what he says. None of my posts are imported and I just posted a new one and the problem persists.

    I did notice though that the like button is always loading at the bottom of the post(page) but there is a working version on the side panel of all posts and pages. does that clarify things? I’ll let you know if he helped.

    Thread Starter lifehappensoutside

    (@lifehappensoutside)

    Thanks for the help! He fixed his theme!

    though the like button still has issues on ‘category’ pages. I’m not too worried about that but thought you might be interested.

    It also is showing up on my widget side panel. but again. not a big deal.

    thanks again.

    Thread Starter lifehappensoutside

    (@lifehappensoutside)

    i spoke too soon. the problem is back. any ideas?

    Plugin Contributor Richard Archambault

    (@richardmtl)

    I still see the js error on this page: https://life-happens-outside.com/who-am-i-again/

    BUT I was able to like the post. I also randomly visited several posts, and all of them had the Likes loading properly, and I was able to Like each one. Can you tell me if you still have the problem? On which posts? Did you empty your browser’s cache?

    Thread Starter lifehappensoutside

    (@lifehappensoutside)

    I emptied the cache of my site and the browsers on two different computers and waited a few days to see if things stabilized. I doesn’t seem to be working for the new posts. https://life-happens-outside.com/story-t-shirt-quilt/ or https://life-happens-outside.com/much-little-done-things/ but it sometimes works for a few other random ones?

    for all the posts the button loads but ends up on the side widgets. you were able to like the post and it shows up on the side. https://life-happens-outside.com/who-am-i-again/

    the button is on the side for the pages too.

    sorry to be such a pain.

    Plugin Contributor Richard Archambault

    (@richardmtl)

    I was able to Like the https://life-happens-outside.com/story-t-shirt-quilt/ post but the button. I was also able to Like https://life-happens-outside.com/much-little-done-things/ but not the 1st time it loaded. I think it’s possibly because the post took a long time to load, because the first image is really large; you should resize images that are that large before uploading them to your site. However, I also see js errors on both of those posts, so that may cause the intermitten problems with the Like button as well. The theme author needs to get those fixed up. This is what I see:

    Uncaught TypeError: Object [object Object] has no method 'SupernovaSticky'

    Lastly, for the Like button in the sidebar widget, this is because the widget is likely pulling in the content from a pre-defined post. As such, the Likes button thinks that you have a nother post there, and the Like button is added to it. You have 2 options to fix it:

    1) The better option: Use a basic Text Widget instead of whatever is actually there; https://en.support.wordpress.com/widgets/text-widget/ (yes, that is from WordPress.com but in this case, the widget is the same). You can include any html in the text widget, including the <img> tag needed for the image.

    2) The less efficient option: add some CSS to your site to hide the Like and sharing buttons in the widget:

    .widget_simpleimage .sharedaddy {
    display:none;
    }

    That will hide both the sharing buttons and the Like button.

    For
    Uncaught TypeError: Object [object Object] has no method 'SupernovaSticky'
    go to Supernova Options > Advanced and turn off this opiton “Turn Off Sticky Navigation”.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Loading Like Button’ is closed to new replies.