From 8e7a93afa6363d703969d59825c89c19a78c3487 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Fri, 1 Jan 2021 21:54:08 +0100 Subject: [PATCH] fix: show social only on articles --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index fc2e64c..9880156 100644 --- a/functions.php +++ b/functions.php @@ -60,7 +60,7 @@ function mypost_social_sharing_buttons($content) { // https://mypost_.com/how-to-create-social-sharing-button-without-any-plugin-and-script-loading-wordpress-speed-optimization-goal/ global $post; - if(is_singular() || is_home()){ + if(is_singular() && !is_page()){ // Get current page URL $mypost_URL = urlencode(get_permalink());