Applying Social9 widget at Wordpress website is very easy. **Social9 **can be added to all different kind of wordpress websites. Here's how.
1- Add the following snippet in your site
Add the following line of code anywhere in your activated Wordpress Theme’s functions.php
file. It’s on path **wp-content/themes/YOUR_ACTIVATED_THEME_DIR
**
add_action( 'wp_enqueue_scripts', 'my_social9_script_load' );
function my_social9_script_load(){
wp_enqueue_script( 's9-sdk', ‘//cdn.social9.com/js/socialshare.min.js’);
}
functions.php
Apply Inline Buttons Before Article
Add Following line of code in your activated Wordpress Theme’s functions.php file. It’s on path **wp-content/themes/YOUR_ACTIVATED_THEME_DIR
**
function social_share_top_of_page($content){
$before = "<div id=’YOUR_CREATED_INTERFACE_ID’"></div>;
$content = $before . $content;
return $content;
}
add_filter ('the_content',’social_share_top_of_page’);
Only for inline widgets (functions.php)
Apply Inline Buttons After Article
Add Following line of code in your activated Wordpress Theme’s functions.php file. It’s on path **wp-content/themes/YOUR_ACTIVATED_THEME_DIR
**
function social_share_bottom_of_page($content){
$after = "<div id=’YOUR_CREATED_INTERFACE_ID’"></div>;
$content = $content . $after;
return $content;
}
add_filter ('the_content',’social_share_bottom_of_page’);
Only for inline widgets (functions.php)
2- Save the file
Save the functions.php file after update.
3- Configure the widget at Social9.com
Configure the widget as per your branding and styling.
CONGRATS! Your Social9 Share Button is now live on your WordPress site :)
Photo by Launchpresso on Unsplash
What is Social9?
Welcome! 👋 is a one-stop-shop platform to drive more traffic and increase audience engagement by leveraging the power of social media.
It offers seamless website integrations with the latest technologies, out of the box analytics and many other "FREE" features for you to get started!
Lets get started! - https://social9.com/