• Saltar a la navegación principal
  • Saltar al contenido principal
  • Saltar al pie de página
labarta

Labarta

  • Plugins WordPress
    • Plugins Premium
    • Plugins gratuitos
    • Preguntas frecuentes
  • Quién soy
  • Contáctame
  • Blog
  • Ayuda

Modifica Gutenberg a tu gusto

16/01/2019

gutenberg-plugin

Modifica Gutenberg a tu gusto, con plugins y con snippets de código.

Hay muchas formas de modificar el comportamiento de Gutenberg, pero te voy a contar las tres que yo utilizo (personalmente y según mi tipo de cliente).

La primera forma de modificar Gutenberg y la más conocida es instalar el plugin "Classic Editor" que está en el repositorio de WordPress.

Todo lo que hay que hacer es instalar y activar el plugin y después en  "Ajustes/Escritura"  simplemente tienes que marcar las opciones que te interesan.

 

classic-editor

 

La segunda forma de modificar Gutenberg es desactivar el Editor de bloques con este simple código (que debes añadir a functions.php de tu tema hijo o con un snippet):

// GUTENBERG - DESHABILITAR
// Deshabilitar para posts individuales
add_filter('use_block_editor_for_post', '__return_false', 10);
// Deshabilitar a nivel de custom post type
add_filter('use_block_editor_for_post_type', '__return_false', 10);

 

Otra forma  si quieres mantener aún el editor clásico, para algunas entradas, para algunas categorías o para algunas páginas, puedes deshabilitar el editor de Gutenberg selectivamente en WordPress a través de código.

Esto está muy bien explicado en este artículo de DecodeCMS .

En esta web es lo que tengo instalado, solo uso Gutenberg a partir de cierto ID para páginas y entradas.

Quedando todo lo anterior con el editor clásico para no tener problemas si actualizo alguna entrada o página.

 

Y la última forma de modificar Gutenberg, que es muy interesante, es utilizar el plugin "Disable Gutenberg Blocks" el cual está en el repositorio de WordPress.

Una vez activado el plugin vete a  "Ajustes/Disable Blocks"  y puedes desactivar los bloques que crees que no vas a utilizar nunca.

De entrada en Gutenberg hay 70 bloques y seguro que no los precisas todos.

Desactiva los que no vas a usar y tendrás una visión más rápida y clara de los utilizables.

Si los desactivas todos solo te quedará el bloque de Párrafo, tal como ves en la siguiente imagen.

 

gutenberg-blocks

 

Si aún tienes dudas de como hacerlo, puedes ponerte en contacto conmigo.

Espero que te sirva lo que te he expuesto en este artículo, esa es al menos mi intención.

 

 

Blog,  Es wordpress,  Plugins

  • Todas las entradas
  • Vídeos Docker
  • Meetup WordPress
  • Vídeos Plugins
  • Vídeos entrevistas
  • Dominios
  • Hosting
  • Avisos Legales
  • Política de privacidad
  • Política de cookies

Footer

SWHOSTING - Cloud server

swhosting-vps

GeneratePress - Tema WordPress

GeneratePress

OnlyOffice - Online Office

Usamos ONLYOFFICE Online Office

Ayuda a mantener el blog:

Si te sirven de ayuda los artículos que publico en el blog, de esta forma puedes contribuir a mantener el mismo.

GRACIAS


Copyright © 2023 · Labarta - Powered by : Labarta

Usamos cookies en nuestro sitio web para brindarle la experiencia más relevante recordando sus preferencias y visitas repetidas. Al hacer clic en “Aceptar todo”, acepta el uso de todas las cookies. Sin embargo, puede visitar "Configuración cookies" para proporcionar un consentimiento controlado.
Configuración cookiesAceptar todo
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Siempre activado
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDuraciónDescripción
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
GUARDAR Y ACEPTAR