• My site is old, with an old custom-made theme, and as a starting point, I am trying out some of the newer default themes using Live Preview. I still have the old themes installed from Twenty Eleven and up to current Twenty Twenty-One. My site displays correctly in all previous themes, except Twenty Nineteen and Twenty Twenty. In these two themes only, the text displays as all question marks [????]. Even the latest theme Twenty Twenty-One displays correctly.

    Before I start rebuilding the Database, are there simple adjustments I can make to Twenty Twenty theme to persuade the text to display correctly?

    Better yet, does anyone understand why this is occurring, especially in only these two default themes?

    [Yes, running 5.7.2 with all plugins updated. And I tried uninstalling and reinstalling each of those themes.]

    Anyone else have this problem?

    Thanks.

    [Cross posted from the Fixing WordPress Forum]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I am sorry you have not had an answer. These question marks appear usually when the character you are trying to use is not in the set of the font being displayed. Could this be the case?

    What if you had installed the font on your site and referenced it as your font in the stylesheet? Does that get over your problem. This is a relatively simple thing to do – for instance there are instructions on https://css-tricks.com/snippets/css/using-font-face/

    something like
    `@font-face {
    font-family: ‘MyWebFont’;
    src: url(‘myfont.woff2’) format(‘woff2’),
    url(‘myfont.woff’) format(‘woff’),
    url(‘myfont.ttf’) format(‘truetype’);
    }`

    But look around, this was just the first I found when I googled “css custom font ttf”.

    Thread Starter petrarchpress

    (@petrarchpress)

    Welp, I just tried Live Preview using the 2019 and 2020 themes again and they both displayed the text correctly. (!)

    There are no custom fonts. I did nothing to the database, did not re-install the themes, and did nothing to my normal theme. So, some update to WordPress must have repaired the situation I was encountering. (Maybe somebody up above saw my post here.)

    ˉ\_(ツ)_/ˉ

    Anyway, all good now. Thanks for your thoughtful responses.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Character set display in 2020 / 2021 default themes’ is closed to new replies.