logo

Connecting you to the most relevant conversations

Our set of products lets you see the web like never before and to zero-in on where you need to be. We’re redefining targeted advertising. Won’t you join the revolution.
press@solidopinion.com
6450 Lusk Blvd., San Diego, CA 92121

“Counter” Widget (parameters)

“Counter” Widget (parameters)

To have the SolidOpinion commenting widget appropriately displayed on your site make sure it meets the following width requirements:

 

The minimal recommended width for the “Community” widget is 200 px.


To change the widget settings use the SolidOpinion admin panel. If you want to change settings of a certain webpage, modify the following parameters in its embed code:

 

Data-sitename

Data-community-length

Data-community-tabs

Data-colors

Data-community-default-tab

Data-language

 

Inserting parameters in the widget code

The widget configuration parameters can be added in the code like the <div> tag attributes.

See the example of the SolidOpinion commenting widget standard code:

 

 

Required parameter:

 

Data-sitename

 

A short name is a unique identifier of your site within the SolidOpinion system. This parameter is obligatory to be specified, otherwise the widget will fail to load.

Example: data-sitename=”example”

 

Optional parameters

 

Data-colors

 

The Data-colors parameter enables you to change the color scheme of the widget to match the look and feel of your website.

Hex colors (“ffffff”):

 

n – user names and links

Example: data colors='{“n”:”50baeb”}’

 

Data-thread_url

 

The thread URL is automatically selected by default. To avoid duplication of discussions on certain sites, in case you have different URLs for desktop and mobile site versions, use this parameter to specify the thread URL in the widget code – this way you’ll get duplicated discussions merged into one.

Example: data-thread_url=”/example”

 

Data-font size

 

This parameter enables you to change the font size used in the comment widget ( -2px; -1px; +1px; +2px of default widget font size )

 

Example: data-font_size=”-2″

 

Data-language

The widget adapts to the language stored in the browser cookies. Use one of the following embed codes to apply a certain language for all the users of your website:

  • English – “en”
  • Russian – “ru”
  • Ukrainian – “uk “
  • Dutch -“ nl ”
  • French-“fr”
  • Indonesian-“in”
  • Polish-“pl”
  • Portuguese-“po”
  • Spanish -“es”
  • Swedish-“sw”
  • Turkish-“tu”
  • German-“de”
  • Italian – “it”

Example: data-language=”en”

 

Example of a code using all the above mentioned parameters:

 

 

To get general information about the “Counter” widget click here

To install the “Counter” widget on your site, please read the following Instruction.

admin