fix: show social only on articles

This commit is contained in:
Kazhnuz 2021-01-01 21:54:08 +01:00
parent 3237b5325c
commit 8e7a93afa6

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