Risposte nei forum create
-
AutorePost
-
San PietroburgoPartecipante
..ho creato delle categorie e degli articoli che si richiamano ad esse, cioè per esempio gli articoli 1,2,3 alla categoria A, gli articoli 4,5,6 alla categoria B, quando richiamo l’articolo 1 mi compaiono sulla pagina anche i link agli articoli 4,5,6, è possibile fare in modo che questo non accada? Come?
Se il sito web è online darai un grosso aiuto a Titti, me e chiunque altri potrebbe risponderti, scrivendo un link ad una delle pagine. Almeno cosଠvediamo esattamente sul campo dove compaiono quei link e di che si tratta.
Al momento, invece, mi vengono a mente solo gli articoli (o pagine) correlati che alcuni plugin (ad esempio Simple Tags) stampano in fondo al testo del post; ma potrebbe non essere questa la causa e per accertarsi di cosa avviene l’unica e vedere dal vivo il sito.
San PietroburgoPartecipanteGli up alle discussioni non sono ammessi e prima di chiedere assistenza andrebbero letti i suggerimenti per chiedere supporto.
Mancano tutta una serie di informazioni alla tua richiesta che l’unica risposta possibile è questa:
Se il tema lo consente, si va nel lungo menù verticale a sinistra e dalla voce “Aspetto” (è dove trovi i temi installati e quello in uso) alla voce Menù, lଠpotrai creare i collegamenti che desideri.
San PietroburgoPartecipanteIn molti servizi di hosting il www si può togliere, lasciare o far lavorare entrambi (con o senza); la configurazione è nel profilo del dominio nel cPanel o Plesk.
In alternativa si può agire sul file .htaccess (ne abbiamo già discusso e scritto come procedere, basta cercare nel forum), oppure chiedere al proprio host aprendo un ticket; in questo caso meglio prima guardare se ne parlano nel wiki o nelle faq, visto che è una delle cose più gettonate per chi inizia.
San PietroburgoPartecipanteNon ho il tempo di fare le stesse prove in locale, però dovresti guardare dove esattamente spariscono, a schermo nell’editor e/o anche nel database?
Con WordPress 3.2.x ed il tema TwentyEleven è stato introdotto HTML5 ed i paragrafi alle immagini vengono volutamente tolti. In molti temi la funzione è nel file functions.php od equivalente (loop.php ad esempio) ed è questa o simile:
function filter_ptags_on_images($content){
return preg_replace('@/@<p>@s*(<a@>)?@s*(<im@g /@>)@s*(<@/@a>)?@s*</p>/iU', '123', $content);
}
add_filter('the_content', 'filter_ptags_on_images');</@a>Cercala e se presente commentala per fermarla (le @ presenti sopra le ho dovute aggiungere per riuscire a postare il codice).
San PietroburgoPartecipanteNon posso metterci la mano sul fuoco ma penso i problemi che riscontri siano dovuti al plugin xili-language. Problemi simili li aveva anche qTranslate ma li abbiamo risolti.
Per cercare di capire dovrai fare alcuni test; test che vanno sperimentati in locale e non nel sito web in produzione.
Dette prove serviranno a verificare dove avviene il pastrocchio..
In pratica si tratta di utilizzare WordPress di default (solo lui ed il tema) e poi ancora, WordPress con la tua configurazione, tema child ed il plugin xili-language.
In entrambe le prove si edita lo stesso identico testo di prova e si pubblica l’articolo; dopo bisogna andare a vedere come è stato scritto nel database, poi visualizzare quel post nel browser per vedere come viene stampato, cioè il codice sorgente.
Tutto questo ti aiuterà a capire dove i paragrafi spariscono, confrontando come WordPress di default ha fatto (nel db e nel sorgente) e come la tua installazione si differenzia dal riferimento. Il problema può avvenire salvando il post, quindi lo vedrai nel database, oppure nel momento in cui il post viene estratto dal database e fornito al browser; in questo caso la differenza con il riferimento si noterà nel sorgente.
San PietroburgoPartecipante@edit
Lo stesso TinyMCE non è un editor HTML5, quindi WordPress lavora in due modi differenti a seconda di quale tema, tra i due di default, andremo ad utilizzare.
Nel caso di TwentyEleven, ad esempio, aggiungerà filtri ed interpreti per far si che le pagine abbiano codice validato HTML5 (o almeno ci prova visto che lo stesso codice non è ancora definitivo).
San PietroburgoPartecipanteLa modalità mobile si ottiene sviluppando tema, plugin e grafica responsive.
San PietroburgoPartecipanteAd interferire con l’editor ci sono molti script e js, tutto dipende da cosa abbiamo aggiunto a WordPress, inteso per tema e plugin.
WordPress non sbaglia se installato come rilasciato, cioè con uno dei due temi di default (uno XHTML1 e l’altro HTML5).
Quando invece andiamo a installare un altro tema e decine di plugin, senza sapere nemmeno se saranno compatibili con il codice HTML utilizzato nelle pagine del sito, capitano questi pastrocchi.
San PietroburgoPartecipanteSe cercavi meglio wpautop, nel repository di WordPress (e qui nel forum perché ricordo di averne già parlato), esiste da molti anni un plugin che fa quel che descrivi senza modificare file del core e tema; queste ultime sono modifiche che oltretutto dovrai rifare ad ogni nuovo aggiornamento (cito e quoto Titti), il plugin esiste proprio per semplificare il mezzo..
San PietroburgoPartecipanteIl sito non si vede più, mi da un errore 500; impossibile quindi diagnosticare cosa è successo o soluzioni osservandolo dal lato client (browser).
-
AutorePost