Support » Fixing WordPress » Adding code to all posts in semilogic theme

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    Semilogic uses an unusual plugin system, so to edit this stuff you’d need to edit the proper plugin code for it. Look in the plugins/sem-theme directory. Probably something in there needs to be modified.

    Thanks for the reply. I located the php file. I put

    echo “test”;

    where I want to insert the google ads and it works fine. But when I replace that with the ad code, the page is blank. How do I convert the code so it is PHPized, i.e., is there a way to automatically put the ‘echo’ statements in front of the code and take care of the other syntax as well?

    Moderator Samuel Wood (Otto)

    (@otto42)

    srikat: Around the adsense code, add ?> and <?php tags. The first one turns off php, the second turns it back on.

    Also be careful not to make your change add the Adsense code more than three times on any given page, like the front page. That would break Google’s rules.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding code to all posts in semilogic theme’ is closed to new replies.