From 1d9db90043803074311bf6bf55cbf5ee2e2dcac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dersim=20=C3=96zdag?= Date: Mon, 4 Nov 2024 12:07:18 +0100 Subject: [PATCH] Share button fix (#737) * fixed facebook and whatsapp share buttons Co-authored-by: Alexander Bigga --- inc/template-tags.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index f9ad260..a6f4860 100755 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -115,15 +115,16 @@ function sunflower_the_social_media_sharers() { if ( sunflower_get_setting( 'sunflower_sharer_facebook' ) ) { $sharer[] = sprintf( '', - rawurlencode( (string) get_the_title() ), + get_permalink(), __( 'Share on Facebook ', 'sunflower' ) ); } if ( sunflower_get_setting( 'sunflower_sharer_whatsapp' ) ) { $sharer[] = sprintf( - '', + '', rawurlencode( (string) get_the_title() ), + get_permalink(), __( 'Share on WhatsApp ', 'sunflower' ) ); }