• Resolved dapaoer

    (@dapaoer)


    Hi

    This theme is excellent overall, but a small bug makes it imperfect.

    If I make a long english post, the card of it will collapse properly in the feed page.

    However this feature seems not working for Chinese posts. All the cards with Chinese content will not be able to collapse in the feed.

    Could you please check this out?

    Kind regards

    • This topic was modified 3 years, 6 months ago by dapaoer.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Utkarsh

    (@utkarshpatel)

    Hello @dapaoer, Thank you for reaching out.

    There are multiple ways to solve this:

    1. Adding excerpt to Chinese language posts will use except instead of full body.

    2. Changing site language to Chinese from setting -> general will make this function use individual char as word, This function is used by theme to trim the char. Code reference: https://github.com/WordPress/WordPress/blob/ef28363c7b44cfb36d5f7e36502f0cbd1c30c7fe/wp-includes/formatting.php#L3888.

    3. You can alternatively use get_the_excerpt filter to write your own logic on how much it should trim.

    Let us know if that works.

    • This reply was modified 3 years, 5 months ago by Utkarsh. Reason: fix ul end
    • This reply was modified 3 years, 5 months ago by Utkarsh. Reason: remove ol markup
    Thread Starter dapaoer

    (@dapaoer)

    Hello Utkarsh

    Thanks for your reply.

    Both 1 and 2 methods work for me.

    I did not test 3 as I dont know how to code php.

    Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The cards of posts do not collapse if they have Chinese words’ is closed to new replies.