Is there any way to change only the fontWeight
of the <summary>
part of the details block?
#57921
-
ProblemAs shown in the following video, changes to the font weight of the details block apply to the entire details block, both 2024-01-17.22.54.58.mp4QuestionIs there any way to change only the *P.S. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Unfortunately, as far as I know, it is currently not possible to change the style of only the Alternatively, the following approaches may be used: Define custom css via theme.json{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"styles": {
"blocks": {
"core/details": {
"css": "& > summary { font-weight: bold;}"
}
}
}
} Write CSS via the Global StylesSite Editor > Global Styles > Blocks > Details > Advanced > Additional CSS |
Beta Was this translation helpful? Give feedback.
Unfortunately, as far as I know, it is currently not possible to change the style of only the
summary
element through the block support user interfaces. How about resetting the child block's style instead?Alternatively, the following approaches may be used:
Define custom css via theme.json
Write CSS via the Global Styles
Site Editor > Global Styles > Blocks > Details > Advanced > Additional CSS