Skip to content

GeoSn0w/sharemi-social-share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

ShareMi Social Share

Ultra-fast, modern social sharing buttons with dark mode support and zero dependencies for WordPress. Especially for themes that completely lack this.

Description

ShareMi Social Share is a lightweight WordPress plugin that adds beautiful, modern social sharing buttons to your posts. Built with performance in mind, it features zero external dependencies, inline CSS, and optimized SVG icons for maximum speed.

Key Features

  • Ultra-lightweight: Zero external dependencies, minimal footprint
  • Modern design: Clean, contemporary styling with smooth animations
  • Dark mode support: Automatic adaptation to dark themes
  • Fully responsive: Perfect display on all device sizes
  • Six social platforms: Twitter, Facebook, Discord, Reddit, Pinterest, Telegram
  • Flexible positioning: Display buttons before or after content
  • Size options: Small, medium, and large button sizes
  • Secure: Built with WordPress security best practices
  • Easy configuration: Simple admin interface for all settings

Supported Platforms

  • Twitter: Direct tweet sharing with post title and URL
  • Facebook: Share to Facebook timeline
  • Discord: Copy link to clipboard for Discord sharing
  • Reddit: Submit to Reddit with title and URL
  • Pinterest: Pin with image (if featured image exists)
  • Telegram: Share via Telegram messaging

Performance Optimized

ShareMi Social Share is designed for speed:

  • Inline CSS (no external stylesheets)
  • Minified styles (70% size reduction)
  • Optimized SVG icons (no HTTP requests)
  • Conditional loading (styles only when needed)
  • Zero JavaScript dependencies

Installation

Automatic Installation

  1. Login to your WordPress admin panel
  2. Navigate to Plugins > Add New
  3. Search for "ShareMi Social Share"
  4. Click "Install Now" and then "Activate"

Manual Installation

  1. Download the plugin files
  2. Upload the sharemi-social-share folder to /wp-content/plugins/
  3. Activate the plugin through the 'Plugins' menu in WordPress
  4. Configure settings via Settings > ShareMi Social Share

Configuration

After activation, configure the plugin:

  1. Go to Settings > ShareMi Social Share
  2. Enable/disable the plugin
  3. Choose button position (before or after content)
  4. Select button size (small, medium, large)
  5. Choose which social platforms to display
  6. Save your settings

Usage

Automatic Display

Once configured, social sharing buttons will automatically appear on all single posts according to your position setting.

Manual Placement

Use the shortcode [sharemi_share] to manually place sharing buttons anywhere in your posts or pages.

Theme Integration

For developers who want to add sharing buttons programmatically:

echo do_shortcode('[sharemi_share]');

Customization

CSS Customization

The plugin uses CSS custom properties for easy theming:

:root {
  --sharemi-bg: #f8f9fa;        /* Background color */
  --sharemi-text: #333;         /* Text color */
}

Dark Mode

ShareMi automatically detects and adapts to dark themes using:

  • prefers-color-scheme: dark media query
  • .dark class support (Tailwind CSS)
  • [data-theme="dark"] attribute support
  • .dark-mode body class support

Browser Compatibility

  • Chrome 60+
  • Firefox 55+
  • Safari 12+
  • Edge 79+
  • Internet Explorer 11+ (limited support, but seriously... why...?)

Security

ShareMi Social Share follows WordPress security best practices:

  • Input sanitization and validation
  • Output escaping
  • Capability checks
  • Nonce verification
  • CSRF protection

Changelog

1.0.1

  • Initial release
  • Six social platforms support
  • Dark mode compatibility
  • Responsive design
  • Admin configuration panel
  • Shortcode support
  • Performance optimization

Frequently Asked Questions

Does this plugin slow down my website?

No. ShareMi Social Share is specifically designed for maximum performance with inline CSS, optimized SVGs, and zero external dependencies.

Can I customize the button colors?

The plugin maintains each platform's brand colors for consistency. However, you can override styles using custom CSS if needed.

Does it work with dark themes?

Yes. ShareMi automatically detects and adapts to dark themes using multiple detection methods.

Can I choose which platforms to display?

Yes. The admin panel allows you to enable/disable any of the six supported platforms.

Is the plugin GDPR compliant?

Yes. The plugin doesn't collect any user data or set cookies. All sharing happens directly through social platform URLs.

Support

For support, feature requests, or bug reports:

Contributing

Contributions are welcome via pull requests.

Credits

Developer: GeoSn0w
Company: iDevice Central
Website: https://geosn0w.com

About

ShareMi-Social-Share is a Wordpress social sharing plugin that adds the social buttons under or before your post. Very lightweight too.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages