Skip to content

[Blocksy] Custom Fonts extension not working with Stackable #3435

@bfintal

Description

@bfintal

Blocksy added a new feature named Custom Fonts extension - it provides the ability to add font stacks. Blocksy Custom Fonts (an existing feature) already works fine with Stackable typography option but for some reason the Font Stacks do not.

Steps to replicate:

  1. I’ve added a custom font called “Chillin” - it works fine and applied in editor and front end too
Screen.Capture.on.2025-02-12.at.11-44-03.mp4
  1. but, the font stack is not applied in editor and also in front
Screen.Capture.on.2025-02-12.at.11-45-05.mp4

Possible reason:

  • It might be because Blocksy applies font stacks as a variable (the same way it is done in core).
  • If you check the styles, the CSS custom property is wrapped in quotes.

Possible fix:

When generating CSS, check if the font is a CSS custom property var(...) then if so, do not wrap quotes around it.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions