Risposte nei forum create
-
AutorePost
-
TittiModeratore
Se non usi un plugin, puoi usare i tag condizionali o creare un template di pagina apposito con il suo relativo CSS, quest’ultima soluzione a maggior ragione se vuoi cambiare solo una parte della pagina.
Oppure CSS e basta, individuando il selettore giusto dal vivo tramite gli strumenti di Chrome o Firefox.
Trattandosi di una pagina, potrebbe essere: body.page.page-id-12345, dove il numero corrisponde all’id della pagina, sostituendo il body con il div della parte interessata, oppure con il body ma dando una posizione…
TittiModeratore@Faricciotti anch’io non lo vedo solo con Firefox, ma il punto è che:
– il log degli errori del server è sul server, quindi devi chiederlo al tuo provider
– dici: “A occhio qualche plugin fa cose strane quando si trova di fronte a Firefox come browser”… quindi se tu avessi fatto le prove richieste nel box avresti già la risposta. Sarebbe bastato leggere solo le prime righe, e anche solo per questo motivo il topic sarebbe da chiudere all’istante.
TittiModeratorequindi nel functions ho solo questo e ti garantisco che non c’è il file ho riscarticato il child e non c’è.
Non so di cosa parli, ma lasciamo perdere perché quello che dici è davvero poco utile e in qualche caso nemmeno vero.
Non so neppure cosa speravi d’ottenere non dicendo tutta la verità subito.
Ti ho chiesto l’inizio del foglio stile per vedere se avevi usato l’import, dato che hai fatto capire TU STESSO che ancora non avevi functions.php e di averlo creato solo dopo la mia risposta.
Per quanto riguarda il functions, ti avevo detto di metterlo cosଠcome hai descritto che era su pastebin per fare un piacere a te – non a me – correggendolo io direttamente là di modo che poi tu dovessi solo caricarlo, questo pensando che si trattasse del tuo solito tema dato che hai omesso informazioni importanti, tema che potevo anche scaricare per cercare il text_domain nel caso non fosse il nome del tema stesso. Bene, non farlo ora perché non ha più senso.
Poi dici che la tua domanda riguarda “altro”, e invece no la tua domanda riguarda il tema com’è evidente, e il fatto che sia premium conta eccome.
Vuoi sapere la prassi, e la prassi comune è questa – se leggi attentamente (cosa che non fa mai nessuno compreso te) capisci.
Metti nel file functions.php:
// Carica i file tradotti del tema child
load_child_theme_textdomain( 'text_domain', get_stylesheet_directory() . '/languages' );Significa che devi cercare il nome del textdomain e inserirlo al suo posto tra le virgolette. Di solito è il nome del tema, ma se non è cosଠdevi cercarlo tra i file del tema padre, in occasione di chiamate come _e() o anche solo __(), in cui il secondo parametro è il text domain, es.: __( ‘stringa traducibile’, ‘text_domain’ ).
Significa anche che devi mettere i file di traduzione in una cartella “languages” nella stessa directory del foglio stile.
Infine, i file di traduzione in quella cartella devono essere chiamati it_IT.po e it_IT.mo, non “default” o qualcos’altro.
Se tutto ciò non funziona, devi chiedere all’autore del tema premium perché vuol dire che qualcosa è stato fatto diversamente.
TittiModeratoreInnanzitutto non hai detto perché vuoi clonare un sito. Se è per svilupparlo, conviene farlo in locale o in un ambiente di test senza però pocciare con lo stesso database del sito in produzione, se è in produzione, e ovviamente chiuderlo ai motori di ricerca. O è per spostarlo?
Poi dici di aver modificato il prefisso delle tabelle (stai parlando del database vero?), cioè ora wp1 non ha più tabelle e quindi non è più in produzione, o hai aggiunto le tabelle di wp2 e hai le tabelle dei due siti nello stesso database?
Non è chiaro cos’hai fatto e cosa vuoi ottenere, in ogni caso non dici di aver modificato i dati di connessione nel file wp-config.php, né cambiato gli URL nel DB.
Clonare un sito come vuoi fare tu non è un’operazione da principiante.
Comunque esistono dei plugin per farlo con meno manovre, ma anche in questo caso devi sapere quello che stai facendo.
TittiModeratoreDevi fare un’intera scansione del sito e ripulirlo dal malware.
https://www.google.it/search?q=wordpress+hacked&ie=utf-8&oe=utf-8&gws_rd=cr&ei=dWqBVteJBMKcPNb9gbAM
TittiModeratoreDal regolamento del forum:
Evitare assolutamente di:
5 – CHIEDERE SUPPORTO PER TEMI O PLUGIN PREMIUM, PER QUELLI DOVETE RIVOLGERVI AL VENDITORE
TittiModeratorenon so dove sbaglio
Ovunque. Innanzitutto dici di aver creato un functions.php nella cartella del tema child – perché, non l’avevi già ? Come carichi il foglio stile del child?
Partiamo da qua anche se non c’entra con i file di traduzione, però mi sa che bisogna andare più a monte.
Per le traduzioni non va bene niente di quello che hai fatto: tu hai solo copiato alla lettera ciò che hai visto scritto in quella pagina, “usage” ed “esempio”.
Dal tema figlio scarica il foglio stile e il functions, incollali ognuno su pastebin e pubblica qui i due link.
(Del foglio stile non m’interessa tutto, solo l’intestazione e le prime righe dello stile).
TittiModeratorehttps://codex.wordpress.org/Function_Reference/load_child_theme_textdomain
All’inizio del functions.php del child.
TittiModeratoreL’importante è che la risposta del server sia un 404, e se lo è significa che il bot ha cercato una directory che non esiste e che forse c’è stata in seguito ad un attacco precedente.
Però, se lo vedi su GA, perché lo chiedi qui?
TittiModeratoreNon so dirti molto perché non l’ho mai fatto. Comunque puoi gestire la cosa con un’installazione Multisite e poi fare la mappatura.
Oppure un banale redirect (senti però dal tuo provider).
L’importante è che il contenuto non sia lo stesso, i motori di ricerca penalizzano i contenuti duplicati su domini differenti e almeno uno dei due sarebbe penalizzato. Se sono effettivamente due diverse lingue, allora va bene.
-
AutorePost