Hello,
Yes, if you are using Elementor, then you can use oceanwp social share widget.
Thanks so how do I do that Amit? Please advise.
1. Create a template under Theme Panel > My Library using Elementor and social share widget
2. Copy the template shortcode and add it where you want to display
Great thanks. I wanted to add a whatsapp share button to it. Do you recommend a plugin for that?
Please ask your OCEANWP developers team to add whatsapp share to their social share buttons. In today’s time its most important 🙂
Hi Anusha,
Try to use the below code and let me know it works or not. If it doesn’t work, then try changing the URL to make it work –
function my_ocean_social_share_options( $array ) {
$array['whatsapp'] = array(
'name' => 'WhatsApp',
'title' => esc_html__( 'Share on WhatsApp', 'ocean-extra' ),
'icon' => 'fa fab-whatsapp',
'url' => 'whatsapp://send?text='. rawurlencode( esc_url( $post_url ) ),
);
return $array;
}
add_filter( 'ocean_social_share_buttons', 'my_ocean_social_share_options' );
where to add this? in the child’s theme? is there an oceanwp child theme?