• Tags and categories in post meta and elsewhere are underlined if links are set to be underlined by default. Removing underlining for the block only affects the prefix and suffix, not the actual post terms.

    Block editor:

    But this CSS is the actual output.

    a:where(:not(.wp-element-button)) {
      color: var(--wp--preset--color--contrast);
      text-decoration: underline;
    }

    The same thing doesn’t happen in Twenty Twenty Four which outputs:

    .wp-block-post-terms a:where(:not(.wp-element-button)) {
      text-decoration: none;
    }

    (Tested with a clean install, no plugins).

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Felipe Santos

    (@foosantos)

    Hi there,

    I’m not sure if I fully understood. I tried:

    • All links are set to underline
    • Tried to change it only for post taxonomies

    Can you confirm the specific steps and share a screenshot?

    https://d.pr/i/byVO31
    Full Size: https://d.pr/i/byVO31

    Thread Starter audunmb

    (@audunmb)

    Categories set to no underlining:

    Result:

    No plugins, just the this theme. So not sure how you get a different result than me.

    Kavya Gokul (a11n)

    (@properlypurple)

    Hey @audunmb! Where and how have you added the ‘Custom Prefix’ text which is not being styled?

    Thread Starter audunmb

    (@audunmb)

    @properlypurple The prefix is added in the block editor:

    And the issue is not that it (the prefix) isn’t getting styled, it is that it is the only thing that is getting styled by changing the options in the style editor. The styling doesn’t apply because the link style overrides the block style.

    Thread Starter audunmb

    (@audunmb)

    @foosantos:

    I tried:

    All links are set to underline

    Tried to change it only for post taxonomies

    Can you tell me how you did this? I can’t find any place to change Typography settings (underline) for links in “post taxonomies”.

    • This reply was modified 10 months ago by audunmb. Reason: formatting
    Moderator jordesign

    (@jordesign)

    Hi @adunmb – you’re correct there isn’t a way to style the links specifically within category lists like that. So it does come down to the default styling from TT3. I’d recommend a CSS approach to adjusting that one.

    Thread Starter audunmb

    (@audunmb)

    Ok. I created a feature request on Github to solve this.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Post terms are threated as default links’ is closed to new replies.