La versione di WP è la 4.8.2
Il tema è Appointment
Dominio su Aruba
Buonasera a tutti.
Avrei bisogno di un aiuto per realizzare una piccola funzione da inserire nel file function.php.
Ho inserito dei link nel footer del template del sito che sto utilizzando in questa maniera:
1. ho copiato il file footer.php dal tema padre al tema CHILD;
2. ho individuato dove scrivere i link ed ho scritto il codice.
Tutto funziona correttamente.
Il problema è nato quando mi sono ricordato che il sito è anche in inglese.
Se cambio lingua infatti i link che ho inserito nel footer rimandano sempre alle pagine in italiano.
Ho allora pensato che forse occorre una funzione da scrivere nel file function.php che si occupasse di rilevare se nell’url sia presente la stringa /en/ e in caso positivo mi restituisca una serie di link in inglese altrimenti mi dia i link in italiano.
Purtroppo non sono per nulla pratico di codice WP e ormai sono giorni che cerco qualche script idoneo da poter usare come base di partenza e da sistemare ma non riesco a trovare nulla.
Mi potreste dare un aiuto?
Sto cercando di imparare questo software
Grazie 1000