http to https facebook sharesClikes
-
Hi friends,
I found a snippet to solve Fb likes&shares off, after https migration. (I haven’t done yet.)
I do not know if there is any cons regarding Hueman coding, but I guess this might help to forum members to solve this problem.The code to paste to function.php :
add_filter("rsssl_fixer_output","rsssl_exclude_http_url"); function rsssl_exclude_http_url($html) { $html = str_replace('data-href="https://', 'data-href="https://', $html); $html = str_replace('data-rsssl', 'data-rsssl-fb data-rsssl', $html); return $html; }
- The topic ‘http to https facebook sharesClikes’ is closed to new replies.