Skip to content

How to use typography controls multiple times. #51409

Answered by t-hamano
himanshudhakan asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @himanshudhakan,

According to your screenshot, there are multiple texts in one carousel block. So you want to set the typography for each text individually?

Unfortunately, block.json allows only one opt-in for each control. As far as I know, there are two approaches that would solve this.

  • Hierarchize the block. This would allow you to apply typography plus other styles to each block (text) individually. The structure will probably look something like this:
    • Product Carousel Block
      • Product Title Block
      • Product Description Block
      • Product Price Block
  • Add your own typography panel. This may require a little more work, but will have the advantage of being treated as a single block.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@himanshudhakan
Comment options

@t-hamano
Comment options

@himanshudhakan
Comment options

Answer selected by himanshudhakan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants