2017 © Pedro Peláez
 

wordpress-plugin wp-contact-widgets

Beautifully display social media and contact information on your website with these simple widgets.

image

godaddy/wp-contact-widgets

Beautifully display social media and contact information on your website with these simple widgets.

  • Tuesday, July 10, 2018
  • by jonathanbardo
  • Repository
  • 14 Watchers
  • 12 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 2 Open issues
  • 25 Versions
  • 0 % Grown

The README.md

Contact Widgets

Banner Image, (*1)

Contributors: godaddy, jonathanbardo, fjarrett, eherman24
Tags: widget, contact, social, [social icons](https://wordpress.org/plugins/tags/social icons/), [social media](https://wordpress.org/plugins/tags/social media/), facebook, twitter, instagram, linkedin, pinterest
Requires at least: 4.4
Tested up to: 5.3
Stable tag: 1.7.0
License: GPL-2.0
License URI: https://www.gnu.org/licenses/gpl-2.0.html, (*2)

Beautifully display social media and contact information on your website with these simple widgets., (*3)

Build Status devDependencies Status License PHP >= 5.4 WordPress >= 4.4, (*4)

Description

Note: This plugin requires PHP 5.4 or higher, (*5)

Beautifully display social media and contact information on your website with simple, easy-to-use widgets., (*6)

Play video on YouTube, (*7)

Contact Information, (*8)

Display your contact information including email address, phone number, fax and physical address (including a map)., (*9)

Social Media Profiles, (*10)

Display your social media profiles in an attractive, intuitive way., (*11)

30 Languages Supported, (*12)

English - Dansk - Deutsch - Ελληνικά - Español - Español de México - Suomi - Français - हिन्दी - Bahasa Indonesia - Italiano - 日本語 - 한국어 - मराठी - Bahasa Melayu - Norsk bokmål - Nederlands - Polski - Português do Brasil - Português - Русский - Svenska - ไทย - Tagalog - Türkçe - Українська - Tiếng Việt - 简体中文 - 香港中文版 - 繁體中文, (*13)

Support, (*14)

If you run into a problem, post your question in the plugin support forum and we would be happy to help. Remember, the more information you can provide up-front, the easier it is for us to verify the problem and the faster we can help!, (*15)

  • Screenshot(s) - How-to guide
  • Name and version of your theme - Video tutorial
  • List of all active plugins on your site - Video tutorial
  • Steps taken or details we should know to reproduce and verify the problem

Contributing, (*16)

Development of this plugin is done on GitHub. If you believe you have found a bug, or have a killer feature idea, please open a new issue there. Pull requests on existing issues are also welcome!, (*17)

Screenshots

  1. Contact widget
  2. Social widget
  3. Twenty Sixteen theme showing both widgets
  4. Social widget block settings and icons
  5. Contact widget block settings
  6. Contact widget block rendered

Frequently Asked Questions

How do I add additional fields to the Contact Information widget?

Adding additional fields to the Contact Information widget is as simple as adding a WordPress filter., (*18)

Here is an example:, (*19)

add_filter( 'wpcw_widget_contact_custom_fields', function ( $fields, $instance ) {

  $fields['cellphone'] = [
    'order'       => 2,
    'label'       => __( 'Cellphone:', 'YOURTEXTDOMAIN' ),
    'type'        => 'text',
    'description' => __( 'A cellphone number that website visitors can call if they have questions.', 'YOURTEXTDOMAIN' ),
  ];

  return $fields;

}, 10, 2 );

How do I add additional fields to the Social Media Profiles widget?

The Social Media Profiles widget requires a different set of options but follows the same principle as above., (*20)

Here is an example:, (*21)

add_filter( 'wpcw_widget_social_custom_fields', function ( $fields, $instance ) {

  $fields['scribd'] = [
    'icon'      => 'scribd', // See font-awesome icon slug
    'label'     => __( 'Scribd', 'YOURTEXTDOMAIN' ),
    'default'   => 'https://www.scribd.com/username',
    'select'    => 'username',
    'sanitizer' => 'esc_url_raw',
    'escaper'   => 'esc_url',
    'social'    => true,
    'target'    => '_blank',
  ];

  return $fields;

}, 10, 2 );

If using Font Awesome v5, 'solid' & 'regular' icons require a 'prefix' value when defining the custom icon. If excluded, the default prefix added to icons is 'fab', for the Font Awesome brand icons. If you are adding an icon that is not a brand icon, you will need to add a prefix. For example, if you wanted to add a graduation cap icon you would need to add 'prefix' => 'fas' to the attributes array., (*22)

Here is an example of adding a 'fas' (Solid) icon to the social profiles., (*23)

add_filter( 'wpcw_widget_social_custom_fields', function ( $fields, $instance ) {

  $fields['lattes'] = [
    'icon'      => 'graduation-cap', // See font-awesome icon slug
    'prefix'    => 'fas', // See font-awesome icon prefix
    'label'     => __( 'Service Name', 'YOURTEXTDOMAIN' ),
    'default'   => 'https://example.com/username',
    'select'    => 'username',
    'sanitizer' => 'esc_url_raw',
    'escaper'   => 'esc_url',
    'social'    => true,
    'target'    => '_blank',
  ];

  return $fields;

}, 10, 2 );

Where are the Font Awesome files served from?

Out of the box the Font Awesome files are bundled in Contact Widgets and served locally. However, we have included a filter to allow Font Awesome files to be loaded from MaxCDN., (*24)

To force the plugin to load the files from MaxCDN you can return a true value in the filter wpcw_social_icons_use_cdn., (*25)

add_filter( 'wpcw_social_icons_use_cdn', '__return_true' );

Changelog

1.7.0 - February 20th, 2018

  • Fix: WordPress 5.3 compatibility fixes. (Replaced $ in favor of jQuery)
  • Tweak: Removed all references of PHP array shorthand syntax. (Replaced [] in favor of array())

1.6.2 - February 20th, 2018

  • Tweak: Adjust the contact block dependencies.

1.6.1 - December 9th, 2018

  • Tweak: URI Encode the contact map address.

Props @EvanHerman, (*26)

1.6.0 - December 6th, 2018

  • New: Introduce Contact Details block.
  • New: Introduce Social Profiles block.

Props @EvanHerman, (*27)

1.5.2 - June 18, 2018

  • New: Introduce filter wpcw_social_icons_fontawesome_5 (default: false) to use Font Awesome 5 in Contact Widgets.
  • New: Introduce filter wpcw_social_icons_use_cdn (default: false) to load Font Awesome v4.7.0 files from MaxCDN.
  • New: Introduce filter wpcw_social_icons_cdn_url to alter the default Font Awesome CDN URL.
  • Tweak: Revert back to Font Awesome 4.7.0 with the option to force load Font Awesome v5.0.13 via filter (see above).

Props @EvanHerman, (*28)

1.5.1 - June 14, 2018

  • Tweak: Added a Font Awesome 5 config file with showMissingIcons set to false, to prevent conflicts with plugins and themes using Font Awesome v4.
  • Tweak: Filter the social profile fields array before localizing into admin.js, fixing custom social profile icons.

Props @EvanHerman, (*29)

1.5.0 - May 31, 2018

  • New: Add support for "Unsplash" (https://unsplash.com/)
  • Tweak: Update FontAwesome to 5.0.6
  • Tweak: Fix typo in widget descriptions.

Props @EvanHerman, @fjarrett, @salvoventura, @garrett-eclipse, (*30)

1.4.1 - February 13, 2017

  • Tweak: Use FontAwesome 4.7.0
  • Fix: Compatibility issues when other plugins add widget form fields

Props @jonathanbardo, @fjarrett, (*31)

1.4.0 - January 10, 2017

  • New: WordPress 4.7 compatibility
  • New: Defer map iframe loading by default
  • Tweak: Remove frameborder from map iframes
  • Tweak: Add filter to change zoom level of map
  • Tweak: Deprecate YouTube link while maintaining backward compatibility

Props @fjarrett, @jonathanbardo, @EvanHerman, (*32)

1.3.3 - October 14, 2016

  • Tweak: Remove edit button during Customize preview
  • Fix: Minor bugs

Props @jonathanbardo, (*33)

1.3.2 - August 16, 2016

  • New: WordPress 4.6 compatibility
  • New: Add RSS to social networks
  • Tweak: Plugin icon update
  • Tweak: Update translation
  • Fix: Edit button not working

Props @jonathanbardo, @fjarrett, (*34)

1.3.1 - June 3, 2016

  • New: Language support for Marathi
  • New: Add 500px to social networks

Props @jonathanbardo, @fjarrett, @salvoventura, (*35)

1.3.0 - May 19, 2016

  • New: Add front-end "Edit" link to quickly edit widgets in the Customizer
  • Fix: Use WP-CLI nightlies in tests

Props @jonathanbardo, @fjarrett, (*36)

1.2.0 - April 12, 2016

  • New: WordPress 4.5 compatibility
  • Tweak: Improve widget names

Props @jonathanbardo, @fjarrett, (*37)

1.1.0 - March 15, 2016

  • New: Support localization on Google Maps

Props @jonathanbardo, @fjarrett, (*38)

1.0.4 - March 9, 2016

  • Tweak: Language updates

Props @jonathanbardo, (*39)

1.0.2 - February 24, 2016

  • New: Language support for 27 locales

Props @jonathanbardo, (*40)

1.0.1 - February 24, 2016

  • New: Added possibility to add custom fields to contact and social widget

Props @jonathanbardo, (*41)

1.0.0 - February 23, 2016

  • Initial release

Props @jonathanbardo, @fjarrett, (*42)

The Versions

10/07 2018

dev-gutenberg-blocks-v2

dev-gutenberg-blocks-v2

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

19/06 2018

dev-develop

dev-develop

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

18/06 2018

dev-master

9999999-dev

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

18/06 2018

v1.5.2

1.5.2.0

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

14/06 2018

v1.5.1

1.5.1.0

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

01/06 2018

v1.5.0

1.5.0.0

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

30/05 2018

dev-phpcs-fixes

dev-phpcs-fixes

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

04/04 2018

dev-gutenberg-blocks

dev-gutenberg-blocks

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

06/02 2018

dev-bundle-fa

dev-bundle-fa

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

24/01 2018

dev-i18n

dev-i18n

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

22/02 2017

v1.4.1

1.4.1.0

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

10/01 2017

v1.4.0

1.4.0.0

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

03/01 2017

dev-hours-of-operation

dev-hours-of-operation

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

31/12 2016

dev-hours-widget-ui-refresh

dev-hours-widget-ui-refresh

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

07/12 2016

v1.3.4

1.3.4.0

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

14/10 2016

v1.3.3

1.3.3.0

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

17/08 2016

v1.3.2

1.3.2.0

Beautifully display social media and contact information on your website with these simple widgets.

  Sources   Download

GPL-2.0+

The Requires

 

06/06 2016

v1.3.1

1.3.1.0

  Sources   Download

The Requires

 

23/05 2016

v1.3.0

1.3.0.0

  Sources   Download

The Requires

 

12/04 2016

v1.2.0

1.2.0.0

  Sources   Download

The Requires

 

15/03 2016

v1.1.0

1.1.0.0

  Sources   Download

The Requires

 

09/03 2016

v1.0.4

1.0.4.0

  Sources   Download

The Requires

 

04/03 2016

1.0.2

1.0.2.0

  Sources   Download

The Requires

 

24/02 2016

1.0.1

1.0.1.0

  Sources   Download

The Requires

 

23/02 2016

1.0.0

1.0.0.0

  Sources   Download

The Requires