Title: DMG Text Widget
Author: dancoded
Published: <strong>29 de juliol de 2016</strong>
Last modified: 22 d'agost de 2016

---

Cerca extensions

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

![](https://s.w.org/plugins/geopattern-icon/dmg-text-widget.svg)

# DMG Text Widget

 Per [dancoded](https://profiles.wordpress.org/dancoded/)

[Baixa](https://downloads.wordpress.org/plugin/dmg-text-widget.1.1.zip)

 * [Detalls](https://ca.wordpress.org/plugins/dmg-text-widget/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/dmg-text-widget/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/dmg-text-widget/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/dmg-text-widget/#developers)

 [Suport](https://wordpress.org/support/plugin/dmg-text-widget/)

## Descripció

DMG Text Widget replaces the standard text widget with one that includes advanced
options to apply a CSS class, add paragraphs, apply shortcodes, hide the title and
make the title a link.

Two hooks are available to filter the title and text; `dmg_text_widget_title` for
the title and `dmg_text_widget_text` for the text.

For example, to change the title on a single page or post, you could add this to
your functions.php file:

    ```
    function myTitleFilter( $title )
    {
        if( is_singular() )
        {
            return "<strong>$title</strong>";
        }
        else
        {
            return $title;      
        }
    }
    add_filter( 'dmg_text_widget_title' , 'myTitleFilter');
    ```

More information about this plugin can be found at [http://dancoded.com/tag/dmg-text-widget/](http://dancoded.com/tag/dmg-text-widget/).

### Adding CSS Class(es)

Enter strings, either space or comma separated, which will be applied as CSS classes
to the widget wrapper. These classes are sanitized using the `sanitize_html_class()`
function built in to WordPress.

### Make the Title a link

Enter a valid URL to make the title a link.

### Automatically add paragraphs

This setting automatically adds paragraph tags to any text. This uses the WordPress`
wpautop()` function.

### Apply shortcodes

This setting processes the text and applies any shortcodes found.

### Show the Title

This setting controls the visibility of the widget title. If unchecked, the title(
including the `before_title` and `after_title` code defined when registering the
sidebar) will not be displayed.

## Captures

[[

## Instal·lació

 1. Upload the plugin files to the `/wp-content/plugins/dmg-text-widget` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ page in the WordPress admin area
 3. Drag onto any active sidebar on the ‘Appearance > Widgets’ page
 4. Click on the ‘Show Advanced’ link in the widget to change advanced options.

## Ressenyes

No hi ha ressenyes per a aquesta extensió.

## Col·laboradors i desenvolupadors

«DMG Text Widget» és programari de codi obert. La següent gent ha col·laborat en
aquesta extensió.

Col·laboradors

 *   [ dancoded ](https://profiles.wordpress.org/dancoded/)

[Traduïu «DMG Text Widget» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/dmg-text-widget)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/dmg-text-widget/),
baixeu-vos el [repositori SVN](https://plugins.svn.wordpress.org/dmg-text-widget/),
o subscriviu-vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/dmg-text-widget/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/dmg-text-widget/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### 1.1

 * Added option to make the title a link by adding a URL
 * Tested with WordPress 4.6
 * Corrected typo’s in readme.txt
 * Update readme.txt

#### 1.0.1

 * Corrected typos in readme.txt

#### 1.0

 * Initial version

## Meta

 *  Versió **1.1**
 *  Darrera actualització **fa 10 anys**
 *  Instal·lacions actives **10+**
 *  Versió del WordPress ** 3.1 o posterior **
 *  Provada fins a **4.6.30**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/dmg-text-widget/)
 * Etiquetes
 * [css](https://ca.wordpress.org/plugins/tags/css/)[shortcodes](https://ca.wordpress.org/plugins/tags/shortcodes/)
   [text widget](https://ca.wordpress.org/plugins/tags/text-widget/)[widget](https://ca.wordpress.org/plugins/tags/widget/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/dmg-text-widget/advanced/)

## Valoracions

Encara no s'ha enviat cap ressenya.

[La vostra ressenya](https://wordpress.org/support/plugin/dmg-text-widget/reviews/#new-post)

[Visualitza totes les ressenyes](https://wordpress.org/support/plugin/dmg-text-widget/reviews/)

## Col·laboradors

 *   [ dancoded ](https://profiles.wordpress.org/dancoded/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/dmg-text-widget/)

## Feu una donació

Voleu ajudar a què l’extensió millori?

 [ Feu una donació a aquesta extensió ](http://dancoded.com/wordpress-plugins/)