Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

82
Vistas
Wordpress Block issue
    const icon = el(
        Icon,
        {
            icon: el(
                SVG,
                {
                    width: 20,
                    height: 20,
                    viewBox: '0 0 576 512',
                },
                el(
                    Path,
                    {
                        d: 'long svg',
                    },
                ),
            ),
        },
    );
    
    const svg = el(
        SVG,
        {
            viewBox: '0 0 467.96 692.45',
            width: 24,
            height: 24,
        },
        el(
            Path,
            {
                d: 'another long svg',
            },
        ),
    );
    
    registerBlockType(
        metadata,
        'archer-tire-tracks',
        {
            icon,
            svg,
    
            edit: () => {
                return [
                    el(
                        'svg',
                        {
                            className: 'archer-tire-tracks',
                        },
                    ),
                ];
            },
    
            save: () => {
                return el(
                    'svg',
                    {
                        className: 'archer-tire-tracks',
                    },
                );
            },
        },
    );

I can't seem to get the icon to actually appear when trying to implement it within a block, also getting a "The editor has encountered an unexpected error." whenever trying to implement it. I've tried a nice bit but I just can't seem to figure it out. I'll take any help at all, thank you all. I have all the necessary imports and everything so that isn't an issue.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda