Add simple share buttons under your posts, add share block in the new editor, or use the widget to add sharing to any widget area your theme provides. This plugin uses simple SVG icons for social network logos and small vanilla JavaScript to allow the user to share the current post or page. Share icons inherit their colours from the theme link colours to match the website design.
Why choose Minimal Share Buttons before other similar plugins?
There are five ways of displaying the share buttons on a post or page:
From version 1.4 you can more easily display the sharing widget in your templates using the function msb_display_buttons(). The function accepts two arguments – an array of options, passed to the widget, and a second boolean argument that tells the function to echo the resulting markup. Here’s an example:
$args = [ 'before_widget' => '<div class="msb-container">', 'after_widget' => '</div>', 'before_title' => '<h2>', 'after_title' => '</h2>', 'title' => __( 'Share this article', 'mytextdomain' ), ]; msb_display_buttons( $args, true );
If your theme uses SVG icons, combined into a SVG sprite, and your sprite has icons for Facebook, Twitter, Google+ and LinkedIn, there are two filters you can use to replace the icons, provided by the plugin, with yours. The results of the two filters are concatenated with a hash between them and passed through esc_url before output.
Another filter allows manipulation of the array of social networks.
The filter is applied to the URL of the sprite image and the filter function should return the URL (without the hash sign) of an SVG sprite image, consisting of icons in symbol elements.
The filter is applied to the icon name before concatenating it to the sprite URL. It should return the ID of the icon symbol in the sprite.
The filter is applied to the default list of social networks and allows adding or removing socials networks. The array of social networks is associative array, the key is used for the option name on settings page and for the icon ID, and the value is associative array with three elements – field_label (the label of the field in settings), button_label (the label of the button for screenreader users), and share_url (the URL for sharing links). The share_url is passed through sprintf with two params – the URL of the current page and the title of the page. Example:
function my_add_xing( $socials ){ $socials['xing'] = array( 'field_label' => __( 'Xing', 'mytheme' ), 'button_label' => __( 'Share on Xing', 'mytheme' ), 'share_url' => 'https://www.xing.com/spi/shares/new?url=%1$s&title=%2$s' ); return $socials; } add_filter( 'msb_socials', 'my_add_xing' );<h3>msb_button_classes</h3> This filter allows changing the classes of the individual buttons. Two parameters are apssed to the filter functions: the array with classes and the social network / button slug.
Starting from $0 per month.
Rating
Reviewers
7 reviews
Tags
Developed By
Milen Petrinski - Gonzo
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Contact Form plugins for Wordpress
Forms plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Comments plugins for Wordpress
Portfolio plugins for Wordpress
Maps plugins for Wordpress
Security plugins for Wordpress
Translation plugins for Wordpress
Ads plugins for Wordpress
Video Player plugins for Wordpress
Music Player plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Chat plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Tabs plugins for Wordpress
Membership plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Inventory plugins for Wordpress
Video Player plugins for Wordpress
Testimonials plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Social Feeds plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Events Calendar plugins for Wordpress
Contact plugins for Wordpress
Comments plugins for Wordpress
Analytics plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Collect user insights with a feedback popup that reveals issues early, improves user experience, and captures valuable leads through a clear feedback form.
Create a mega footer that organizes navigation links, contact info, logos, social icons and improves usability and site structure.
Capture email leads with an email subscription form that collects addresses, saves entries, sends notifications, and helps grow your audience.
Use an image accordion to show pictures in collapsible panels that save space, highlight key visuals, and keep visitors engaged.
Create secure HIPAA compliant forms that protect sensitive data, offer full customization, and integrate easily for safe medical information collection.
Back to top button that improves navigation, speeds up browsing, and helps visitors move smoothly through long pages for a better user experience.
Use an order form to let customers submit product orders, save entries, receive notifications, and collect payments through PayPal or Stripe for a smoother buying experience.
Marketing button with text and an icon that highlights key offers, draws attention to promotions, and helps increase engagement and conversions.
Show trust badges that highlight security and reliability, build customer confidence, and help visitors feel safe making purchases on your site.
Show real time visitor counts with a visitor counter widget that displays live traffic, builds social proof, and boosts engagement.
Create interactive flash cards that present questions and answers in a clear, customizable format to support learning, training, and user engagement.
Showcase visuals with a multi row image slider that displays images in layered rows, improves design, and helps visitors explore content more easily.
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!
