Add Icons & Animations to the WordPress Button Block

Поделиться
HTML-код
  • Опубликовано: 26 авг 2024

Комментарии • 4

  • @WorldEnglishBlog
    @WorldEnglishBlog 3 года назад +1

    Hey Matt, thanks for sharing your knowledge again. Just a heads up the PHP code is not in the video description yet.

    • @BuildThatWebsite
      @BuildThatWebsite  3 года назад +1

      Thanks for the reminder, I was in a rush this morning and forgot to add the description. RUclips doesn't allow the > character in video descriptions unfortunately, so I had to add it via a pastebin link.

  • @grigoriymalyshev4782
    @grigoriymalyshev4782 2 года назад

    Great tutorial, thanx. But I've got a question: how can I edit btn preview-image in sidebar?

    • @BuildThatWebsite
      @BuildThatWebsite  2 года назад

      When registering a block variation you can specify a custom icon (dashicons) or SVG image. Here's the relevant page from the codex:
      developer.wordpress.org/block-editor/reference-guides/block-api/block-variations/