Contact Widgets – WordPress plugin

Wordpress.org
Deal Score0
Deal Score0

This plugin provides 2 blocks.

contact-widgets/social-block
Social Profiles
contact-widgets/contact-block
Contact Details
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.

Here is an example:

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.

Here is an example:

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.

Here is an example of adding a ‘fas’ (Solid) icon to the social profiles.

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.

To force the plugin to load the files from MaxCDN you can return a true value in the filter wpcw_social_icons_use_cdn.

add_filter( 'wpcw_social_icons_use_cdn', '__return_true' );

This plugin is very user friendly and fast. Thanks!

I installed this plugin as part of a very very basic 2 page wordpress site.

I installed WordPress through Godaddy C-panel app install and picked one of the 7 default themes. This plugin came with it. I configured the site and then tested the contact form. It goes nowhere. I googled and googled and checked and re-checked settings. Could not find any settings for this plugin. No documentation about how to troubleshoot this. I downloaded a plugin called check email to test whether the site could send e-mail. It passed. I tried filling in 3 different e-mail accounts. 2 Office365 and 1 gmail. It showed up nowhere. I installed a mail test plugin. It was able to send me a test. The form still doesn’t work. I tried installing a 3rd party smtp plugin. I twas able to send me a test. Contact form still doesn’t work.

Have been on 90 minute chat session with godaddy support. Form still doesn’t work. They claim that they ran a script test and it works. The contact form still doesn’t work. They seem to have no ideas about how to troubleshoot it.

My frsutration is the lack of functioning and the lack of any useful info for troubleshooting or settings or anything. I can see if I was doing massive customizing but I’m not. I simply installed WordPress using Godaddy isntallers, picked one of the default themes and ended up with this contact form that is of no use to me.

Also, this whole experience has devalued my opinion of Godaddy support.

This contact widgets was really helpful in my last projects. Thank you for your hard work and such a great tool.

very helpful for every wp site

Plugin is really user friendly and simple in use, but at the same time so helpful in daily website usage.

This is really nice widget very helpful for every wp site.


Read all 14 reviews

“Contact Widgets” is open source software. The following people have contributed to this plugin.

Contributors

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

1.6.0 – December 6th, 2018

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

Props @EvanHerman

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

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

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

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

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

1.3.3 – October 14, 2016

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

Props @jonathanbardo

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

1.3.1 – June 3, 2016

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

Props @jonathanbardo, @fjarrett, @salvoventura

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

1.2.0 – April 12, 2016

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

Props @jonathanbardo, @fjarrett

1.1.0 – March 15, 2016

  • New: Support localization on Google Maps

Props @jonathanbardo, @fjarrett

1.0.4 – March 9, 2016

Props @jonathanbardo

1.0.2 – February 24, 2016

  • New: Language support for 27 locales

Props @jonathanbardo

1.0.1 – February 24, 2016

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

Props @jonathanbardo

1.0.0 – February 23, 2016

Props @jonathanbardo, @fjarrett



Source link

We will be happy to hear your thoughts

      Leave a reply

      Wordpress Tutorials, Tips, Themes and Plugins.
      Logo
      Register New Account
      Reset Password
      Shopping cart