Home › Forum › Problemi Vari con WP › Pubblicità Edintorni e script Tooltip
-
AutorePost
-
-
12 Dicembre 2009 alle 16:59 #12428davidebr90Partecipante
Salve a tutti….utilizzo lo script ToolTip di Edintorni che sottolinea un tot di parole nel sito e le rende collegamenti pubblicitari…il problema sta nel fatto che voglio che le parole siano sottolineate SONO negli articoli…e non in tutto il sito (compreso il titolo ecc…). Su edintorni riporta:
Tag per contestualizzare solo determinate aree della pagina
<BODY>
<p>
Questa parte di testo non verrà contestualizzata.
<p>
<!-- <EdIndex> -->
<TABLE>
<TR>
<TD>
Solo il testo compreso tra i due EdIndex sarà contestualizzato.
</TD>
</TR>
</TABLE>
<!-- </EdIndex> -->
</BODY>
oppure
Tag per escludere aree della pagina dalla contestualizzazione
<BODY>
<p>
Questa parte di testo verrà contestualizzata.
<p>
<!-- <EdNoIndex> -->
<TABLE>
<TR>
<TD>
Tutto il testo compreso tra i due EdNoIndex non sarà contestualizzato.
</TD>
</TR>
</TABLE>
<!-- </EdNoIndex> -->
</BODY>
ora...che file devo modificare affinchè "legga" solo gli articoli e sottolinei solo lଠle parole da pubblicizzare??
Uso WordPress 2.8.6
-
4 Gennaio 2010 alle 13:40 #70438AvelixPartecipante
Ciao, in questi giorni ho avuto anche io la stessa necessità .
Non so che tema utilizzi per il tuo Blog, nè tantomeno com’è strutturato il codice che richiama gli articoli (loop)
A grandi linee però (e sperimentando) posso dirti che il codice di edintorni lo devi inserire:
Nota: ti aggiungo che per le colonne e per l’header e footer (laddove avessi bisogno di escludere queste aree dall’inserimento del tooltip di edintorni) devi utilizzare l’altro codice fornito da edintorni
1) nel file sidebars.php ed eventualmente nei files (nel caso vi siano) sidebars2 o sidebarsleft, ogni autore sceglie di dargli un nome differente.
1a)Devi inserire il codice EdNoIndex appena sotto
>?
e chiuderlo appena sopra
<?
ovviamente se l'autore del tema che utilizzi ha aggiunto cose del tipo
<?php endif; ?>
dovrai inserirlo appena sopra
2) se invece vuoi semplicemente fare in modo che Edintorni contestualizzi gli articoli, devi aprire il file single.php del tuo tema ed inserire i tag che hai indicato nel post come segue:
- il tag
<!-- <EdIndex> -->
appena dopo
<div id="content">
- il tag
<!-- </EdNoIndex> -->
<?php endif; ?>
Una nota: se volessi escludere il titolo del tuo articolo devi inserire il primo tag appena dopo
<div class="post fix" id="post-<?php the_ID(); ?>">
In questo modo escluderai il titolo.
Nota: ho controllato qualche tema di quelli che avevo scaricato e/o utlizzato e i riferimenti sono pressapoco uguali per tutti.
Se ci capisci un attimo di struttura del codice del tema, puoi facilmente (ed eventualmente) trovare quali siano i riferimenti giusti.
Spero di esserti stato d'aiuto in qualche modo, eventualmente posta il codice del tema o indicamene il nome
[off topic mode on]
Ps: Non voglio entrare nel merito, avrai le tue ragioni, ma edintorni paga davvero poco....una media per click che difficilmente supera i 3cent di €. e un eCPM dello 0,50 cent/1000 impression.
Adsense è nettamente più vantaggioso (dipende ovviamente da cosa tratti sul tuo blog)
In alternativa proverei Bidvertiser
[off topic mode off]
Teodoro
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.