I want to add a couple 728×90 google ads to my forum.
I think I know what to do if it just involves adding the google code. But on a post in this thread “https://simple-press.com/support-forum/sp5-coding-questions/adsense-code/” you mention “just use the php echo statement to output the adsense code”.
How do I echo it / will it make any difference if I just add the code to the places I wish for them to appear?
Mr Papa said
you can just stick it in the template file for the sp theme you are using, checking for $spTopicView->current_post==1, after the inner post loop…right after these
sp_InsertBreak();
sp_SectionEnd(”, ‘post’);
just use the php echo statement to output the adsense code… you might want to style it…
as always, we recommend you make your own sp theme before editing ours to prevent losing changes on upgrade… http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/
Many Thanks
Craig