Risposte nei forum create
-
AutorePost
-
WillSmith7Partecipante
Grazie, credevo che avessi scritto page solo per abbreviare pagenumber (non conoscevo proprio il comando), comunicherò alla direzione del mio sito in questione. Comunque non l’ho fatto di proposito, per me è veramente difficile spiegare essendo un profano, e non era mia intenzione farti perdere tempo. Grazie ancora
WillSmith7PartecipanteNon è che scrivo a pezzi, è che per me è difficile spiegare non intendendomene del settore. Essendo che in molti forum la gente non risponde proprio quando vede complicazioni, ho preferito aspettare nel documentarmi per un’ora al fine di scrivere la spiegazione completa del mio problema per non perdere tempo inutilmente.
Mi hai detto di usare il forum di Google per la SEO, ma è proprio da lଠche vengo. E’ stato proprio una persona dello staff di quel forum, dopo aver controllato sul sito, a consigliarmi il canonical modificato come soluzione, ma di evitare il noindex. Mi è stato detto di cercare un plugin per modificare il canonical perchè questa persona non ne conosceva nemmeno uno (per evitare modifiche al php).
Tra l’altro, giusto una parentesi anche se magari non ti interessa per nulla, non immagini che storia… Sono stato mandato da questa persona dal forum sulla community di supporto per webmaster Google+, e lଠinvece di aiutarmi mi mandano PM per farmi consulenze a pagamento (ovviamente non è colpa sua, lui è stato gentilissimo).
Ho letto il link di Yoast ancora prima che me lo dessi tu, ma ho preferito restare su ciò che mi avevano detto sul forum per webmaster. Se ho sbagliato forum su cui chiedere aiuto allora pardon.
Per concludere tornando al problema, solo se ne hai voglia, ciò che vorrei fare è optare per %%pagenumber%%, ma resta solo una cosa da fare, la seguente. Il filtro da inserire in functions.php per rimuovere “Pagina 1” solo dal title della home, sempre se si può fare con un filtro, non so come crearlo, il link con le API non è abbastanza per me per capire come costruire questo codice…
WillSmith7PartecipanteAllora, ti spiego. Su Google Search Console, in Miglioramenti HTML, mi è apparso questo errore in “Title duplicati” e “Meta description duplicate”:
/
/page/2/
Non è che siano realmente contenuti duplicati, è Google che le riconosce come tali e se non risolvo mi penalizza. Per risolvere questo errore dovrei modificare il codice SOLO della pagina 2 (o al massimo anche della pagina 3) inserendo come canonical la homepage (quindi con l’apposito codice che contiene rel=canonical href=www.tech4d.it), per far capire a Google che non è un duplicato. Sei sicuro si tratti di una manovra anti SEO? Perchè molti la suggeriscono come soluzione al problema. Il codice è sbagliato e hai ragione, capisco quindi che dovrei agire sul plugin Yoast. Ma cosa devo fare di preciso? Quale file di Yoast devo modificare e che codice devo inserire?
Un modo alternativo sarebbe quello di aggiungere %%pagenumber%% al title delle pagine a partire dalla home per differenziarle (anche se non sono sicuro che risolva il problema contenuti duplicati). Yoast mette a disposizione un campo per modificare il title della home, gli aggiungo pagenumber ma poi appare un fastidioso “Pagina 1” anche sulla Home, e sono punto e a capo perchè non so rimuovere nemmeno quello tramite php.
Vorrei cercare di mantenere indicizzate tutte le pagine ed evitare i noindex, ecco perchè sto cercando di risolvere in questi modi.
WillSmith7PartecipanteLa pagina che dovrei modificare è lei http://www.tech4d.it/page/2/ e devo mettere al suo interno un rel=canonical che imposta la home page. Che ne dite se aggiungo questo codice tra <head> e </head> nel file header.php del tema?
<?php
if ( is_page(‘/page/2/) )
echo ‘<link rel=”canonical” href=”www.tech4d.it” . home_url( ‘/’ ) . ‘” />’;
?>
L’ho modificato da un altro codice is_home_page, quindi potrebbe essere tranquillamente sbagliato, e ovviamente non oserò inserirlo nel sito finchè non avrò la sicurezza che sia giusto
WillSmith7PartecipanteEsattamente
-
AutorePost