/* Ejemplo Cargar Fuentes Personalizadas Desde Child Theme Para Usar en Gutenberg */ add_action( 'enqueue_block_editor_assets', 'gutenberg_custom_styles' ); function gutenberg_custom_styles() { wp_enqueue_style( 'custom-fonts', get_stylesheet_directory_uri().'/fonts/custom-fonts.css', array(), filemtime( get_stylesheet_directory() . '/fonts/custom-fonts.css' ) , false ); //Añadir filemtime() para generar versiones del archivo }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter