Erros de validação W3C no Wordpress

  • Autor Autor risquet
  • Data de início Data de início
Este tópico foi traduzido automaticamente do espanhol. Ver original
R

risquet

Delta
Usuário com poucas negociações! Use sempre o saldo do ForoBeta!
Estou recebendo este erro:

Error: Bad value http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic|Bree+Serif for attribute href on element link: Illegal character in query: not a URL code point.
From line 28, column 142; to line 29, column 155
a='all' />↩<link rel='stylesheet' id='webfonts-css' href='http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic|Bree+Serif' type='text/css' media='all' />↩
Syntax of URL:
Any URL. For example: /hello, #canvas, or Example Domain. Characters should be represented in NFC and spaces should be escaped as %20.

o que se supõe que eu devo fazer? Suprimir esse href do código web??

No código fonte está essa linha tal qual, mas no editor do wordpress não aparece assim no functions.php, que é onde me aparece isso mais ou menos, embora no código fonte apareça no cabeçalho mas enfim... devo ir ao root e modificar algum arquivo?

Aqui outro erro que me aparece

Error: Bad value generator for attribute rel on element a: The string generator is not a registered keyword.
From line 506, column 20; to line 506, column 115
owered by <a href="http://wordpress.org/" title="A Semantic Personal Publishing Platform" rel="generator">WordPr
Syntax of list of link-type keywords:
A whitespace-separated list of link types, with no duplicate keywords in the list. Each link type must be listed as allowed on <a> and <area> in the HTML specification, or must be listed as allowed on <a> and <area> on the Microformats wiki, or must be an absolute URL. You can register link types on the Microformats wiki yourself.

Se supõe que devo mudar a palavra "generator" por outra??
 
Última edição:
Foi útil? Participe da conversa

Com sua conta grátis você pode responder, mandar mensagem privada ao autor e comprar com Saldo retido: o pagamento é liberado quando você recebe o combinado.

Leva 30 segundos · você volta a este tópico ao terminar
[MENTION=42312]risquet[/MENTION] Ele está te explicando o erro e como corrigi-lo.

For example: /hello, #canvas, or Example Domain. Characters should be represented in NFC and spaces should be escaped as %20.

então simplesmente mude | por %7C
 
[MENTION=42312]risquet[/MENTION] Ele está te explicando o erro e como corrigi-lo.

For example: /hello, #canvas, or Example Domain. Characters should be represented in NFC and spaces should be escaped as %20.

então simplesmente mude | por %7C

Mas isso aparece no código fonte tal qual, mas no functions.php me aparece assim:

function emphaino_enqueue_webfonts() {
$font_families[] = 'PT+Sans:400,700,400italic';
$font_families[] = 'Bree+Serif';

$protocol = is_ssl() ? 'https' : 'http';
$query_args = array(
'family' => implode( '|', $font_families ),

Devo mudar o | da última linha por %7C simplesmente??
 
Mas isso aparece no código fonte tal qual, mas no functions.php me aparece assim:

function emphaino_enqueue_webfonts() {
$font_families[] = 'PT+Sans:400,700,400italic';
$font_families[] = 'Bree+Serif';

$protocol = is_ssl() ? 'https' : 'http';
$query_args = array(
'family' => implode( '|', $font_families ),

Devo mudar o | da última linha por %7C simplesmente??

Sim..........
 
Voltar
Topo