defiant
defiant

Reputation: 3341

Diamond with Questionmark in fonts

In my website I use the language Malayalam. Everything works fine except the excerpts. In the front page the website only shows like <10 words for each products. So most of the time at the end of the excerpt there is a black diamond with a question mark.

See the image

Now when I open the product listing page f or the same(with the same content, the question mark is not there.See this: enter image description here

So can some one please explain me why it comes like this and come up with possibly a solution?

PS: The website is in wordpress!

Upvotes: 0

Views: 1164

Answers (2)

defiant
defiant

Reputation: 3341

If someone else have this problem, I guess this could help:

The issue was, the theme creators used substr function to remove the extra characters from the excerpt. So this function was removing the characters which are obsolete when stand alone in this language and the browsers are not finding a way to represent these. So it comes up with the question marks in the diamonds. So I removed the substr function and limited the excerpt with lesser number of words to achieve the same functionality without breaking the layout of the theme.

And it worked!

Upvotes: 0

kuldip Makadiya
kuldip Makadiya

Reputation: 715

i think your wordpress malayalam font are not supported to your css please define your HTML character - encoding to set your language in your site.

Generally ? is one type of character which are not supported to your language that means if we define copy right symbol as it is in our site at that time it will display ? character but on that we use &copy at that time it will displayed right character .

Upvotes: 1

Related Questions