Categories

Did you update your WordPress website from http to https, and now your Facebook like button disappear?

Chances are you are using WooTheme’s shortcode, woo-fblike, for the Facebook like button in your template. (Actually Woothemes is now WooCommerce, so let’s call them by their correct new name).

When you update your site to https, the iframe for the Facebook like button needs to use an https address, not an http address. WooCommerce’s shortcode uses http for the Facebook iframe. Why WooCommerce doesn’t fix this, I don’t know. But it’s easy for you to fix!

How bring back your Facebook like button after upgrading to https SSL

On your FTP server find the following file:
wp-content/themes/canvas/functions/admin-shortcodes.php

Around line 641, you’ll see:

Just change that http to https.

Save and upload back to your FTP.

Now your Facebook like button should reappear. Sometimes it takes a couple hard refreshes on the browser for it to reappear. Hold down the shift key and click the refresh button in your browser to do a force-refresh. If that doesn’t work, click around on your site, eventually you’ll the Facebook like button come back.

Facebook likes will reset

The sad thing is that when you upgrade your site from http to https, you’ll lose all your like counts. Every post on your site will reset back to zero. The likes are based on the URL of the blog post. When you change the urls from http to https, the url is considered a new URL. Thus, the likes will be zero. The future of all websites is https, so you pretty much have to upgrade your site at some point. Might as well bite the bullet and do it now. But if you are reading this blog post, chances are you’ve already upgraded to https. Congrats!

Leave a Reply

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 2,017 other subscribers

Email Address

About the author

Hi. I'm Matt Maldre. I've been working in the syndication business for over 17 years. How do we create, read, and share? Honest and bold opinions on publishing and syndication in this weekly blog.
(Read more)

1. Oh yes, I keep a paper notepad to write down ideas and diary entries. Every time at lunch, I try to write at least something. It doesn't have to be a lot. Even just a few lines. 2. You might find the flip phone more annoying in our current era. But who knows? Give it a try! 5/6. Yeah, it certainly seems like Star Trek had a lot more attention in the late 80s and 90s. Especially with tv series like Star Trek New Generation. And now Star Wars is getting all the attention. Part of that attention to Star Wars might be due to the long time where Star Wars pretty much fell off the map. When Star Wars started to come back, it had people a lot more excited, because of that draught. 7. I'm listening to Ghostbusters II now too. Oh man. Bobby Brown. His 1988 album "Don't Be Cruel" was one of the first CDs I ever owned! Man. I can even remember unwrapping it during Christmas that year. Back then CDs came boxed in really long packages, so they could sit inside the old record LP cases. 8/9. Where would you want your essay to be published? 10. Yes. More blog posts in this style. I will take blog posts of any style!

This makes me feel better about being a generalist. I often yearn to dive really deep into one area, to really master it, and have the sense of accomplishment. But your post here excellently explains the value of being a generalist.