Home › Forum › Problemi Vari con WP › HTML Entities: domanda per esperti
-
AutorePost
-
-
5 Marzo 2008 alle 0:09 #5976smartmousePartecipante
Devo inserire delle pubblicità nel mio sito ma il codice del banner è in javascript e WordPress mi converte alcuni caratteri in html entities… e in questo modo i banner non vengono visualizzati!
C’è un modo per risolvere? Magari disattivando la conversione in html entities da qualche parte?
Spero che qualcuno sia cosଠesperto da aiutarmi!
Sul forum di wordpress.org non ho proprio chiesto perchè è praticamente morto!
-
5 Marzo 2008 alle 7:19 #51374ondapiPartecipante
ciao
non penso che tu riesca ad inserire del codice come intendi tu nel database (all’interno dei post) ma potresti includerlo nel loop
prova a guardare questo link http://www.wpitaly.it/wiki/Main/FaqGenerali#toc9
ancora puoi inserire eventuali banner in single.php e modificare o creare vari template di pagina, personalmente utilizzo del codice da flickr nella sidebar, che utilizzo all’interno di un widget di testo
-
5 Marzo 2008 alle 7:19 #51375SteveAglAmministratore del forum
ma come inserisci il codice? Dove?
-
5 Marzo 2008 alle 7:32 #51376EliasPartecipante
io ho messo del codice javascript per visualizzare delle immagini in home page, ma l’ho inserito direttamente nel template preso come modello per la home.
Potresti fare un templeta apposito per le pagine dove deve inserire il codice, attenzione il mio è un suggerimento da niubio visto che uso WP da pochissimo tempo…..
Vero SteveAgl?
-
5 Marzo 2008 alle 7:45 #51378SteveAglAmministratore del forum
Corretto, anche perchè non ha senso inserire ogni volta il codice di un banner in pagine e articoli
-
6 Marzo 2008 alle 0:30 #51410smartmousePartecipante
Non posso inserire il codice dei banner nel template, perchè per ogni post voglio decidere dove far uscire il banner.
E per fare ciò ho installato il plugin WP-OpenAds. Il codice viene incollato cosi com’è e guardando nel database rimane invariato.
Il problema è quando viene visualizzato nel post: controllando il codice html della pagina si notano caratteri come & o ‘ che diventano html entities.
Ho letto il link che mi è stato suggerito ed effettivamente si risolve in quel modo, ma non nel mio caso, perchè non inserisco il banner sempre nello stesso punto del post.
C’è un modo per risolvere secondo voi? Ci deve essere…
-
7 Marzo 2008 alle 7:29 #51428SteveAglAmministratore del forum
Inserire il codice usando l’editor HTML e nonpassare mai a quello visuale.
-
7 Marzo 2008 alle 15:07 #51429smartmousePartecipante
Ho provato come mi hai detto ma ora al posto di html entities compaiono prima di caratteri come “, , ‘
Come faccio ad usare un vero editor html in WordPress? Quello di default che mi compare quando clicco sul tab Codice, non mi mostra tutto il codice, ma sembra essere mezzo WYSIWYG e mezzo no!
-
7 Marzo 2008 alle 18:29 #51431webnicolaPartecipante
Hai provato ad andare nel tuo profilo utente e deselezionare “Utilizza l’editor avanzato durante la scrittura” ?
-
7 Marzo 2008 alle 19:06 #51433smartmousePartecipante
Nulla è cambiato
Qualche modo per visualizzare solo l’html in fase di scrittura di un nuovo post?
Disattivando l’editor avanzato cmq non esce tutto il codice…
-
7 Marzo 2008 alle 19:44 #51435SteveAglAmministratore del forum
http://wordpress.org/extend/plugins/raw-html/
Dovrebbe risolvere il tuo problema.
-
7 Marzo 2008 alle 19:45 #51436SteveAglAmministratore del forum
http://wordpress.org/extend/plugins/all-in-one-adsense-and-ypn/#post-2664
Per inserire annunci pubblicitari google etc anche in posizioni a piacere.
-
8 Marzo 2008 alle 0:01 #51440smartmousePartecipante
Wow, ho risolto con Raw-html! Grazie mille!
L’altro plugin che mi hai segnalato è inutile senza Raw…
Ad ogni modo usavo WP-OpenAds e in precedenza AdSense Deluxe plugin o qualcosa del genere.
Ma alla fine ho optato per inserire il codice in “modalità raw”.
Grazie ancora!
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.