fix: show social only on articles

This commit is contained in:
Kazhnuz Klappsthul 2021-01-01 21:54:08 +01:00
parent 3237b5325c
commit 8e7a93afa6
1 changed files with 1 additions and 1 deletions

View File

@ -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());