Install on WordPress
The Sentir Social Widgets plugin adds a block to the editor and a shortcode.
Install
Section titled “Install”- In your WordPress go to Plugins > Add New.
- Search for Sentir Social Widgets, install it and activate it.
It needs WordPress 6.0 or later and PHP 7.4 or later.
With the block
Section titled “With the block”- In the editor, add the Sentir Social Widget block.
- In the block’s panel pick the widget from the list. You can change the language, theme and width for that block alone.
- Publish. The editor shows a preview; the site shows the chart.
With the shortcode
Section titled “With the shortcode”[sentir_widget id="WIDGET-ID"]Options, all optional:
| Attribute | Values | If you leave it out |
|---|---|---|
lang |
es, en |
The one in the plugin’s settings. |
theme |
auto, light, dark |
The one in the plugin’s settings. |
width |
pixels, for example 480 |
All the width there is. |
[sentir_widget id="WIDGET-ID" lang="en" theme="dark" width="480"]The settings page
Section titled “The settings page”Under Settings > Sentir Social Widgets:
- Available widgets: the list of published widgets, each with its shortcode ready to copy. The list is asked from sentirsocial.com and kept for 12 hours; the “Refresh the list” button asks again.
- Default language and theme for the widgets on your site.
- Show the credit: off when you install. If you turn it on, the link “Data: Sentir Social” to the topic’s report shows under each widget. WordPress.org’s rules ask that a public credit link be the site owner’s choice; that is why it is a setting and does not come switched on. The credit is what lets us keep the widget free, so we are grateful if you turn it on. The widget works the same with or without it.
What the plugin does
Section titled “What the plugin does”- Your server asks
https://sentirsocial.com/api/widgetsfor the list of widgets when you open the settings page or the editor. It sends no data about your site or your readers. - On pages with a widget it loads
https://sentirsocial.com/widget.js, which inserts the chart. - It sets no cookies and stores nothing about your readers.
- Uninstalling it deletes its settings.
Its WordPress.org listing
Section titled “Its WordPress.org listing”The listing shows the versions, the changes and the frequent questions, and is where plugin problems are reported. The link will be on sentirsocial.com/en/widgets once the plugin is published.