Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

120
Visualizações
Setting a specific character to another font set for page rendering at runtime

My Client is using a font on the web that doesn't have a character "+" in it. I have a product that is called Clean + Fresh on an e-commerce website, and I can see that when inspecting the element the "+" is loading correctly. The problem is the font that doesn't have this character.

Instead I get "Clean 1 Fresh" rendering on a page.

Is there any way that a piece of code can detect for a PLUS sign in a specific CSS class, and then replace that character with another font that contains that character - for example Arial.

Here is an example of the product CSS entry:

<h1 itemprop="name" class="product_title entry-title">Clean + Fresh </h1>

Thank you for your help.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

This is easily solved by wrapping the plus sign in a span, and defining a standard font-family for it.

h1 {
  font-family: cursive;
}

span.plus {
  font-family: Arial, Helvetica, sans-serif;
}
<h1 itemprop="name" class="product_title entry-title">Clean <span class="plus">+</span> Fresh </h1>

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda