取得 facebook Like 程式碼
點選想要的按鈕樣式,按下「取得程式碼」

設定 WordPress 佈景主題編輯器
Step 1 到 WorePress控制台 \ 外觀 \ 佈景主題編輯器


Step 2 程式碼放到 OceanWP: Theme Header (header.php)

Step 3 程式碼放到 OceanWP: content.php (partials/single/content.php)
把下列程式碼
data-href="https://developers.facebook.com/docs/plugins/"
替換成:
data-href="<?php echo get_permalink(); ?>"

記得編輯完該頁佈景要按頁面下方的「更新檔案」。
進入文章後,已經出現 facebook Like 按讚的按鈕。 如果沒出現,可以嘗試清除網站 Cache 或 Purge all pages。
