• Hello Guys,
    I have my blog and I want to add an “advertise” space after the first post. Like core77 has… https://www.core77.com/
    You will see after the second post a space that say “Advertisement” with a image, and the continue the third post.
    How I have to do that? I have to create another .PHP file? or is just .CSS?
    Please, help me with this issue, because I don’t have an idea how do it…none.

    Franco

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter cagninadesign

    (@cagninadesign)

    Or anyone can send me a interesting LINK, so I can learn?

    Thread Starter cagninadesign

    (@cagninadesign)

    I already fix it…
    To make this you have to do this…

    In index.php in my template, I added this code:

    <?php $ppl=$ppl+1;
    if ($ppl==1) include(“advertising.html”); ?>

    just after the <p class=”postmetadata”> section, and before the <?php endwhile; ?> section. So now when the $ppl variable is equal to one, the advertising.html file is included, at other times, nothing is.

    And the create your advertising.html with the info that you want and that is it!!!

    Actually there’s a walkthru on this already:

    https://www.tamba2.org.uk/wordpress/adsense/

    Go down a bit and you’ll see it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add HTML? after the first post’ is closed to new replies.