Descripción
The shortcode requires the widget ID, but no need to guess, the plugin generates the code for you. To override the widget title for a widget you can use the «title» parameter:
[widget id=»text-1″ title=»New title»]
You can also hide the widget title entirely if desired:
[widget id=»text-1″ title=»0″]
Parámetros adicionales:
- container_tag: the HTML tag to use for the widget container, default:
div
- container_class: CSS classname added to the widget container, default:
widget %2$s
(Note: uses sprintf for variable substitution) - container_id: HTML ID attribute for the widget container, default:
%1$s
(Note: uses sprintf for variable substitution) - title_tag: HTML tag to use for the widget title wrapper, default:
h2
- title_class: CSS classname for the widget title wrapper, default:
widgettitle
Capturas
Bloques
Este plugin proporciona 1 bloque.
- Widget Shortcode
Instalación
- Upload the whole plugin directory to the
/wp-content/plugins/
directory - Activa el plugin a través del menú «Plugins» en WordPress
- That’s it. Use the [widget] shortcode anywhere you want
- ¡Disfrútalo!
Reseñas
Colaboradores y desarrolladores
«Widget Shortcode» es un software de código abierto. Las siguientes personas han colaborado con este plugin.
Colaboradores«Widget Shortcode» ha sido traducido a 16 idiomas locales. Gracias a los traductores por sus contribuciones.
Traduce «Widget Shortcode» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
0.3.5
- Add support for the Additional CSS Classes field in Gutenberg
0.3.4
- Nuevo bloque de Gutenberg
0.3.3
- Additional CSS classes to the widget wrapper
0.3.2
- Fix bug with getting correct widget instance. Thanks @frankieandshadow!
0.3.0
- Fix possible notice message
0.2.9
- Fix notice messages regarding unregistered widgets
0.2.8
- Fix bug where widget titles do not show. Thanks @websitedons!
0.2.7
- update how the shortcode code is displayed to avoid potential problems; thanks @websitedons!
0.2.6
- Fix for possible notice message
- Additional parameters to control the widget output
0.2.5
- Fix notice message if widget is inactive
0.2.4
- Shortcode generator in TinyMCE
- i18n
- Reprogramación menor del código
0.2.3
- Corregidas las clases de widgets que faltaban y el ID de before_widget
0.2.2
- Corregido un fallo al eliminar los títulos del widget
- Compatibilidad con Widget Title Links y otros plugins que cambian los argumentos de los widgets
0.2.1
- Añadida la posibilidad de anular el título del widget en el shortcode
- Compatibilidad para filtrar los argumentos por defecto de los widgets
- Vaciado el aviso de PHP
0.2
- Añadida la función `do_widget`
- Añadida la opción «título» que permite activar o suprimir el título del widget