Create Block Theme
Este plugin te permite:
- Crear tema en blanco
- Create a new theme based on the currently active theme
- Create a child theme of the active parent theme
- Create a new style variation
- Exportar un tema
- Save user changed templates and styles to the active theme
All newly created themes or style variations will include changes made within the WordPress Editor.
This plugin also makes several changes to the contents of a theme, including:
- Adds all images used in templates to the theme’s
assetsfolder. - Ensures the block markup used in templates and patterns is export-ready.
- Ensures most strings used in templates and patterns are translate-ready.
Aviso legal: El plugin Create Block Theme ofrece funciones críticas para desarrolladores; puedes considerarlo como un Modo de desarrollo para WordPress, y debes tener en cuenta que los cambios realizados a través de este plugin podrían modificar tu sitio y/o tema de forma permanente.
(Asegúrate de que sabes lo que haces antes de pulsar el botón «Guardar» 😉 )
Paso 1 – Configuración
Instala y activa el plugin Create Block Theme.
There will be a new panel accessible from the WordPress Editor, which you can open by clicking on a new icon to the right of the «Save» button, at the top of the Editor.
Paso 2 – Personalizaciones de estilo
Make changes to your site styles, fonts and templates using the Editor.
Paso 3 – Exportar
Still in the WordPress Editor, navigate to the Create Block Theme menu at the top of the Editor.
To save recent changes made in the Editor to the currently active theme:
- Select «Save Changes» to save any recent changes to the currently active theme.
To install and uninstall fonts:
- Install and activate a font from any source using the WordPress Font Library.
- Select «Save Changes To Theme» and select «Save Fonts» to save all of the active fonts to the currently active theme. These fonts will then be activated in the theme and deactivated in the system (and may be safely deleted from the system).
- Any fonts that are installed in the theme that have been deactivated with the WordPress Font Library will be removed from the theme.
o exporta el tema:
- Select «Export Zip» to export the theme as a zip file.
To edit the theme metadata:
- Select «Edit Theme Metadata» to edit the metadata for the theme. These details will be used in the style.css file.
To inspect the active theme’s theme.json contents:
- Select «Inspect Theme JSON»
To create a new blank theme:
- Select «Create Blank Theme»
- Supply a name for the new theme (and optional additional Metadata)
- Click «Create Blank Theme»
To create a variation:
- Select «Create Theme Variation»
- Provide a name for the new Variation
- Click «Create Theme Variation»
Para crear un nuevo clon del tema actual o para crear un hijo del tema actual:
- Click «Create Theme»
- Click «Clone Theme» to create a new Theme based on the active theme with your changes
- Click «Create Child Theme» to create a new Child Theme with the active theme as a parent with your changes
Muchas de estas opciones también están disponibles en la antigua y obsoleta página Create Block Theme, en Apariencia > Create Block Theme.
General Troubleshooting
Si tienes problemas, por favor intenta lo siguiente:
- Asegúrate de tener instalada la última versión de WordPress.
- Asegúrate de tener instalada la última versión del plugin.
- Desactiva todos los plugins y verifica si esto resuelve el problema. Si funciona, vuelve a activar los plugins uno por uno hasta encontrar el o los plugins problemáticos.
- Switch the theme to the default theme to rule out any theme-related problems.
- Consulta el foro de soporte para problemas similares.
I’m getting a corrupt zip file when I export my theme
- First follow the general troubleshooting steps above.
- Please make sure you
WP_DEBUGsetting in yourwp-config.phpfile is set tofalselike this:define( 'WP_DEBUG', false );. - Si tu tema incluye archivos PHP, asegúrate de que esos archivos no utilicen etiquetas de cierre PHP
?>al final del archivo. Si las tienen, retíralas.
