Duplicate Widget
A widget that can act as a duplicate of another widget (for synchronized use in another sidebar) Define a widget once, use it in multiple sidebars. This saves you from having to manually configure each copy of the widget and later having to worry about keeping them in sync should you ever need to make any changes. Particularly useful for those who define logic in their themes to conditionally include different versions of a sidebar depending on what template is being shown. Depending on use, it is an alternative to plugins that introduce in-widget logic to determine when widgets should be visible (Widget Logic, Section Widget, Conditional Widgets, etc). Quick overview of what this plugin does: Adds a widget called “Duplicate”. The widget’s only setting is a dropdown listing all active widgets. The selected widget will be the widget duplicated by the duplicate widget. A duplicate widget shows the same title and content as its source widget, even if those values later get changed in the source widget. A widget can be duplicated any number of times and can appear multiple times within the same page. (Yes, even within the same sidebar, though why would you do that?) A duplicate widget will abide by the configuration of the sidebar it is placed in, not the configuration of the sidebar containing the source widget. So it uses ‘before_widget’, ‘after_widget’, ‘before_title’, ‘after_title’ values of its own sidebar. Widgets that are duplicated will have “[D]” prepended to their name in the widget titlebar in the admin to denote they have duplicates. Also, at the bottom of the widget’s configuration form (when the widget is expanded), a short blurb also explains that the widget has duplicate(s) and a count of how many duplicates it has. If a widget is deactivated or deleted, if it has any duplicates, they get deleted as well. The widget id and widget type of the source widget are included as HTML classes in the duplicate widget’s markup. Links: Plugin Homepage | Plugin Directory Page | Author Homepage Filters The plugin exposes four actions for hooking. Typically, customizations utilizing these hooks would be put into your active theme’s functions.php file, or used by another plugin. c2c_before_duplicate_widget (action) The ‘c2c_before_duplicate_widget’ hook allows you to output text, or perform some sort of action, just before the output of the duplicate widget. Arguments: $instance (array) : The settings for the widget instance (namely: title and widget_to_duplicate) $args (array) : The configuration for the widget and sidebar Example: // Output an opening before duplicate widget content add_action( 'c2c_before_duplicate_widget', 'my_c2c_before_duplicate_widget', 10, 2 ); function my_c2c_before_duplicate_widget( $instance, $args ) { echo ' ; } c2c_after_duplicate_widget (action) The ‘c2c_after_duplicate_widget’ hook allows you to output text, or perform some sort of action, just after the output of the duplicate widget. Arguments: $instance (array) : The settings for the widget instance (namely: title and widget_to_duplicate) $args (array) : The configuration for the widget and sidebar Example: // Output an closing after duplicate widget content add_action( 'c2c_after_duplicate_widget', 'my_c2c_after_duplicate_widget', 10, 2 ); function my_c2c_after_duplicate_widget( $instance, $args ) { echo ' ; } c2c_before_duplicate_widget_form (action) The ‘c2c_before_duplicate_widget_form’ hook allows you to output text, or perform some sort of action, just before the output of the duplicate widget’s configuration form (in the WP admin). Arguments: $instance (array) : The settings for the widget instance (namely: title and widget_to_duplicate) Example: // Display a message just before the duplicate widget settings form add_action( 'c2c_before_duplicate_widget_form', 'my_c2c_before_duplicate_widget_form' ); function my_c2c_before_duplicate_widget_form( $instance ) { echo ' Note: this is a note above the widget settings form. '; } c2c_after_duplicate_widget_form (action) The ‘c2c_after_duplicate_widget_form’ hook allows you to output text, or perform some sort of action, just after the output of the duplicate widget’s configuration form (in the WP admin). Arguments: $instance (array) : The settings for the widget instance (namely: title and widget_to_duplicate) Example: // Display a message just after the duplicate widget settings form add_action( 'c2c_after_duplicate_widget_form', 'my_c2c_after_duplicate_widget_form' ); function my_c2c_after_duplicate_widget_form( $instance ) { echo ' Note: this is a note below the widget settings form. '; }
Top keywords
- widget64×8.64%
- duplicate39×5.26%
- duplicate widget28×3.78%
- c2c16×2.16%
- form13×1.75%
- action12×1.62%
- instance12×1.62%
- output10×1.35%
- c2c after duplicate8×1.08%
- c2c before duplicate8×1.08%
- settings8×1.08%
- sidebar8×1.08%
Social Media Share Buttons & Social Sharing Icons
Try it out on your free dummy site: Click here => https://tastewp.com/plugins/ultimate-social-media-icons (this trick works for all plugins – just replace “wordpress” with “tastewp” in the plugin’s WP repo URL) Social media plugin which let’s you add share icons for RSS, Email, Facebook, Twitter, LinkedIn, Pinterest, Instagram, Youtube, ‘Share’ (covering 200+ other social media platforms) and upload custom share icons of your choice. This free plugin has a lot to offer. Even more can be found in the Premium Plugin, please watch this short video: See all features of the Premium plugin. The free social media plugin includes the following features: Pick from 16 different designs for your social media share icons Give several actions to one social media share icon (e.g. your facebook share icon can lead visitors to your Facebook page, and also give visitors the opportunity to like your page) Decide to give your social media icons an animation (e.g. automatic shuffling, mouse-over effects) to make your visitors aware of the share icons, increasing the chance that they follow/share your blog Make your social media icons ‘float’ or ‘sticky’ Allow visitors to subscribe to your blog by Email Add ‘counts’ to your social media buttons Decide to display a pop-up (on all or only on selected pages) asking people to follow/share you via your social media icons Decide to display sharing-buttons and social media icons at the end of every post Select from many other customization features for your socialmedia icons! For GDPR compliance, please have a look at our Social Media GDPR Compliance page. The social media plugin is very easy to use as it takes you through all the steps: Step 1: Choose which social media icons you want to display Step 2: Define what actions your social media icons should perform Step 3: Pick design & animation options for your social media icons Step 4: Add counts to your social media icons (optional) Step 5: Select from various other social share options, e.g. make your social media icons ‘float’ Step 6: Add sharing/linking icons next to each blog post (optional) Step 7: Add a customized pop-up asking people to follow or share (optional) Step 8: Add a subscription form on your site (optional) In case of issues or questions please ask in the Support forum. We hope you enjoy the free social media plugin! New premium social share plugin We released a premium social share plugin with many more exciting features: Many more social networks supported, including Snapchat share buttons, Whatsapp share buttons, Yummly share buttons, Phone button, Yelp share buttons, Soundcloud share buttons, Skype share buttons Flickr share buttons, Blogger share buttons, Reddit share buttons, Vimeo share buttons, Tumblr share buttons, Xing share buttons, Xhenta, Vkontakte share buttons (VK), Telegram share buttons, Amazon share buttons, Goodreads share buttons, Angies list share buttons, Steam share buttons, Twitch share buttons, Spotify share buttons, Odnoklassniki share buttons (OK), Buffer share buttons, Weibo share buttons, Pocket share buttons, Meneame share buttons, Frype share buttons, LiveJournal share buttons, Patreon share buttons, Dloky share buttons, Discord share buttons, Github share buttons, WordPress buttons, Etsy share buttons, Better Business Bureau share buttons, Digg share buttons, Delicious share buttons, Print share buttons, and many other share buttons! More design styles to make your social share icons look really cool & matching the design of your website Themed design styles, e.g. if you have a website about cats you can pick from social media logos which look like cats etc. Better social sharing and following features, e.g. you can define the Tweet-texts better (e.g. pull the post titles into your Tweets automatically), let people follow you on Facebook directly without leaving your site etc. Place the social icons on specific pages, i.e. you can define on which pages the icons to the social media sites should not show Position the social icons by anchor and margins, i.e. you can define the margins where your share icons should be displayed (from top/bottom/left/right), and then have them floating, or stick, still visible when user scrolls down or not etc. Optimized for mobile – you can define separate selections for your social network icons for mobile More functions for email icon, such as Share (by email), Contact you, Link to a certain page etc. Social media counters optimized to encourage more social media sharing from your visitors More pop up options which contain your social media buttons, e.g. define a limit to how often the pop-up is shown to the same user, show pop-up only when people try to leave your website etc. Friendly support in case you’re stuck Many more settings and options for your social media network icons Have a look at the Premium Plugin features