Quote block styles in theme.json not picked on frontend
-
I’m using WP 6.0 RC3 and I’ve added this piece of code to my custom theme
theme.json
file (where--theme-secondary-text-color
is a CSS var in my theme CSS). The styles are loaded on the backend correctly, but are not on the frontend:"core/quote": { "color": { "background": "transparent", "text": "var(--theme-secondary-text-color)" }, "border": { "width": "3px", "style": "solid", "color": "var(--theme-secondary-text-color)" }, "spacing": { "margin": { "bottom": "1.6em" }, "padding": { "top": "0", "right": "1.5em", "bottom": "0", "left": "1.5em" } }, "typography": { "fontSize": "1rem", "fontFamily": "Georgia, \"Times New Roman\", \"Bitstream Charter\", Times, serif", "lineHeight": "1.4" } }
The only styles loaded on the frontend are the default ones from core:
.wp-block-quote { border-left: .25em solid; margin: 0 0 1.75em; padding-left: 1em; }
This is only happening with the quote block, not other block types.
Any ideas?Thanks in advance
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Quote block styles in theme.json not picked on frontend’ is closed to new replies.