admin管理员组

文章数量:1124412

Within a query loop I wanted to display the category of the post. Therefore I used the categories-block:

I want it to look like this:

I did not find an option to style this block in the theme.json. Is it not possible for this block?

Looking forward to your reply!

Within a query loop I wanted to display the category of the post. Therefore I used the categories-block:

I want it to look like this:

I did not find an option to style this block in the theme.json. Is it not possible for this block?

Looking forward to your reply!

Share Improve this question edited Mar 4, 2024 at 21:50 Marzii asked Mar 4, 2024 at 18:27 MarziiMarzii 336 bronze badges 2
  • can you edit this to just 1 question? You can create new questions if you have more than one but bundling them all together can severely reduce the chance of an answer, as well as the quality and length – Tom J Nowell Commented Mar 4, 2024 at 19:08
  • Reduced to the first question. – Marzii Commented Mar 4, 2024 at 21:50
Add a comment  | 

1 Answer 1

Reset to default 0

As there is no option to style this block in the theme.json I remove the underline for every link with the follwing code:

  "styles": {
    "link": {
      "typography": {
        "textDecoration": "none"
      }
    }
  }

本文标签: theme developmentStyle categories block in query loop