Adding Social9 Widgets On Wordpress Website In Just 3 Steps

David Kim
David Kim

AI Engineer

 
June 21, 2018
1 min read

Applying Social9 widget at Wordpress website is pretty easy. Social9 can be added to most wordpress websites. Here's how.

1- Add the Social9 Snippet

You need to add a snippet to your theme's functions.php file. This file is usually located at wp-content/themes/YOUR_ACTIVATED_THEME_DIR.

Here's the code snippet you need to add:

<?php
// Add Social9 snippet
function add_social9_snippet() {
    ?>
    <!-- Paste your Social9 tracking code here -->
    <?php
}
add_action('wp_head', 'add_social9_snippet');
?>

Add this code to the beginning of your functions.php file, right after the opening <?php tag if it exists, or just paste it in if the file is empty.

Apply Inline Buttons Before Article

To have the inline buttons appear before your article content, add the following code to your functions.php file. This code hooks into WordPress's content filter to add the buttons.

<?php
// Add Social9 inline buttons before article
function social9_inline_buttons_before_post_content( $content ) {
    // Replace 'YOUR_SOCIAL9_INLINE_BUTTON_CODE_BEFORE' with your actual Social9 inline button code for before
    $inline_buttons_code = '<div>YOUR_SOCIAL9_INLINE_BUTTON_CODE_BEFORE</div>';
    return $inline_buttons_code . $content;
}
add_filter( 'the_content', 'social9_inline_buttons_before_post_content' );
?>

Place this snippet in your functions.php file, ideally at the end, but make sure it's within the <?php ?> tags.

Apply Inline Buttons After Article

If you want the inline buttons to show up after your article content, use this code. It works similarly to the "before" code but appends the buttons at the end.

<?php
// Add Social9 inline buttons after article
function social9_inline_buttons_after_post_content( $content ) {
    // Replace 'YOUR_SOCIAL9_INLINE_BUTTON_CODE_AFTER' with your actual Social9 inline button code for after
    $inline_buttons_code = '<div>YOUR_SOCIAL9_INLINE_BUTTON_CODE_AFTER</div>';
    return $content . $inline_buttons_code;
}
add_filter( 'the_content', 'social9_inline_buttons_after_post_content' );
?>

Again, add this snippet to your functions.php file, ensuring it's correctly enclosed within <?php ?> tags.

2- Save the File

After you've added the code, make sure to save your functions.php file.

3- Configure the Widget at Social9.com

Head over to Social9.com to configure your widget. You can adjust things like branding and styling there to match your site's look.

CONGRATS! Your Social9 Share Button is now live on your WordPress site :)

David Kim
David Kim

AI Engineer

 

Full-stack developer building AI-powered social media tools that generate platform-specific content at scale. Expert in machine learning and natural language processing.

Related Articles

TikTok, Instagram Reels, and YouTube Shorts: Short-Form Video Strategy for 2026
short-form video strategy

TikTok, Instagram Reels, and YouTube Shorts: Short-Form Video Strategy for 2026

Stop chasing viral vanity. Learn the 2026 strategy for TikTok, Instagram Reels, and YouTube Shorts that builds community and drives real revenue.

By Alex Chen June 10, 2026 5 min read
common.read_full_article
LinkedIn, TikTok, Instagram, Threads, Bluesky: Social Media Platform Comparison 2026
social media platform comparison 2026

LinkedIn, TikTok, Instagram, Threads, Bluesky: Social Media Platform Comparison 2026

Stop the 'post-everywhere' madness. Compare LinkedIn, TikTok, Instagram, Threads, and Bluesky to find the right 2026 strategy for your brand's growth.

By Nikita Shekhawat June 10, 2026 5 min read
common.read_full_article
Brand Storytelling on Social Media: Frameworks That Build Real Loyalty
brand storytelling social media

Brand Storytelling on Social Media: Frameworks That Build Real Loyalty

Stop the noise. Learn how to use human-centric brand storytelling frameworks to build authentic social media loyalty and cut through the Inattention Economy.

By Jessica Thompson June 9, 2026 6 min read
common.read_full_article
Multilingual Social Media Content: How to Localize Without Losing Meaning
content localization strategy

Multilingual Social Media Content: How to Localize Without Losing Meaning

Stop translating and start localizing. Learn how to adapt your social media strategy for global markets without losing your brand voice or meaning.

By David Kim June 9, 2026 6 min read
common.read_full_article