• Hello,
    I am using twenty twenty-four theme. I have latest posts block on one of my page in which I have listed the posts according to specific category. All my post titles have two part, which are divided by hyphen.
    For example:

    • Dogs – types & price
    • Cats – types & price
    • Pigeons – types & price
    • Etc…

    The latest post block is arranged in above manner. I want the right side of the hyphen to be hidden or removed from the latest posts list. Which will make the list like this:

    • Dogs
    • Cats
    • Pigeons

    Is there any possible way to do this, may be via additional css or something?

Viewing 1 replies (of 1 total)
  • Moderator jordesign

    (@jordesign)

    Hi @mahakaal28 – as far as I’m aware there’s not a built in way to do that kind of thing – as the whole string of text is stored together. You also mentioned CSS – but there’s not really a way to detect part of a string with CSS, so anything would effect the whole text.

    The only thing I can think that might work is using jQuery to detect the - – but that’s outside the scope of what we could offer help with here.

Viewing 1 replies (of 1 total)

The topic ‘Latest Posts customisation’ is closed to new replies.