Site logo

Archived topic

Remove commas from tags

3 replies · Started by Diogenes on February 3, 2019

Viewing posts 1–4 of 4

Hi.

Put the code that is displayed in this post to remove the commas of the tags in the post:
https://generatepress.com/forums/topic/changing-the-categories-style/page/2/#post-495802

The problem is that when the tags have a blank space, cut the tags and jump to the next line (even though there is space available in the div) unzipping the design.

[img]http://img.fenixzone.net/i/zbSqIQH.png[/img]

Can you help me?
Thank you.

P.S. Before I had tried with this code:
https://gist.github.com/generatepress/18e41e03783b5c7e86402d429e64efc0

but as I try to also remove the commas from the categories, I put them as lists, which ruins my design.

Hi there,

try adding this CSS to your existing CSS:

.entry-meta a,
.entry-meta a:visited {
    white-space: nowrap;
}

.cat-links,
.tags-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

It worked!.
Thank you.

Awesome. Glad to be of help.

This archived topic is closed to new replies.