Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

84
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!