• Resolved thePixelPixie

    (@yourbusybee)


    First of all, I LOVE ACF Extended. Thank you for all your hard work on it!

    I’m using the Block Types for the first time right now. I was able to use dashicons very easily. But I’m wondering how I might use custom icons. Do I need to export the PHP for the block and then customize the icon in functions? I did try adding the svg code itself into the field. That obviously didn’t work. I tried adding it with the apostrophes on either end. That didn’t work either (of course).

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    I’m glad to hear that you enjoy ACF Extended!

    As explained in the other support thread, the ACF Extended Block Type module use the native acf_register_block_type() function behind the scene. So I would recommend to check the ACF Block Type documentation for more examples about how to use settings, such as the icon.

    I just tried to use the svg from the documentation, and it works fine for me:

    <svg viewBox="0 0 24 24" xmlns="https://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19 13H5v-2h14v2z" /></svg>
    

    You’re sure your svg is in a valid format?

    Hope it helps!

    Have a nice day!

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic Block Custom Icon?’ is closed to new replies.