How to add in a code to phpbb files?

ZachJ

Addicted
Joined
Feb 14, 2013
Messages
958
Reaction score
95
FP$
891
I have a code from sumome.com and i was wondering how to implement it, Though i don't know what specific file to edit

Code:
<script src="//load.sumome.com/" data-sumo-site-id="4e072e959cb58eef2f85f282281d0c0d86f4a6079559fbfa6e70b31878db56ad" async="async"></script>

This is the code just don't know where to put it. it says in <head> just don't know which file.
 
You'll need to manually edit your theme's template files, and edit the header file (I cannot recall what phpBB names it by default since it depends on which version you are using). This will have to be done via FTP.
 
What is the code suppose to do? Display an advertisment or image? You need to go into FileZilla or a FTP program. Depending on your applications in your computer. You should be able to edit the templates. You might have to rename the file from .html to .php with Notepad or Notepad++ and add the code to the bottom or top of the header that you prefer. I really dislike the customization of php with file editing. Older versions of phpBB allows you to edit your templates within the admin CP.
 
Some versions will let you do this in footer code in the ACP under General but for some latest versions you'll need a footer plugin or you can add it directly into the header via FTP / file manager, whichever you prefer
 
Back
Top Bottom