Esistono molti plugin per wordpress fatti per inserire la pubblicità, molti di questi però mostrano oltre ai vosti anche i loro, facendo così diminuire le impressions e i relativi guadagni, per evitare che ciò avvenga basta editare manualmente il file single.php del vostro tema.
Apri il tuo template (anche dal pannello di WordPress alla voce Editor), clicca su single.php (articolo singolo) e cerca questa riga di codice:
<?phpIn the red number indicating the point after which the advertisement will be shown in blue the words to replace the ad code.
$paragraphAfter= 1 ;
$content = apply_filters('the_content', get_the_content());
$content = explode("</p>", $content);
for ($ i = 0, $ i {\u0026lt;count($content); $i++)
if ($i == {$paragraphAfter) ?>
\u0026lt;div> ;
INSERT CODE HERE
\u0026lt;/ div>
\u0026lt;? php}
echo $ content [$ i]. "\u0026lt;/ P>";}?>
This method allows you to rest assured that any kind of advertising you will be shown, plus any plugin to be installed reduces the possibility of conflict problems with other plugins and slowness of the site or blog.
0 comments:
Post a Comment