Issue #3637Opened July 23, 2021by mingxin-yang0 reactions

Custom block icon

Question

I want to custom block icon, I found the code:

.gjs-f-text::before {
    content: "o";
}

.gjs-fonts::before {
    display: block;
    font: normal normal normal 14px font3336;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 5em;
}

how to find the content for I want?

Answers (1)

artfJuly 29, 20210 reactions

Hi @mingxin-yang you can read here how to create and update Blocks. In case you need to update an icon/label of the Block, you can do something like this:

editor.Blocks.get('BLOCK-ID').set({ 
 label: 'My block', 
 media: '<svg...', // eg. your svg image
})

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.