🚀
PlanetStyles Theme Documentation
  • 👋Intrdouction
  • 🏃Getting started
    • How to install our phpBB themes
    • How to install phpBB extensions
    • How to update theme to new version
    • How to update extension to new version
    • How to edit code files
    • How to purge cache
    • How to set new theme as default
    • How to add your own code to our themes
  • 🛠️Troubleshooting
    • Theme not showing in "install styles" list
    • Extension not showing in "manage extensions"
    • Unable to find template "ajax.js"
    • HTTP error 500
    • No colours are showing up
    • Advance BBCode box on Milk theme
    • "missing style.css stylesheet"
  • ✨Feature Guides
    • 🥛Milk theme
      • Milk: Favicon
      • Milk: Logo
      • Milk: Header background
      • Milk: Navbar position
      • Milk: Font options
      • Milk: Layout width
      • Milk: Light / dark options
      • Milk: Accent colour options
      • Milk: Forum list options
      • Milk: Content block headers
      • Milk: Sidebar options
      • Milk: Social footer options
      • Milk: Post profile side
      • Milk: Collapsible panels
      • Milk: Scroll to top
      • Milk: Rounded corner options
      • Milk: Forum icon options
      • Milk: Global <head> code
Powered by GitBook
On this page
  • Adding code to <head>
  • Adding sidebar code
  • Adding new code by manual editing
  • Adding new code in other locations

Was this helpful?

  1. Getting started

How to add your own code to our themes

In some cases you might want to add your own code, as such as advertising or analytics tracking. Advanced users might want to adjust our native CSS or add their own markup.

Adding code to <head>

Our Milk and H2O theme control panels can add global <head> code through the ACP.

  1. In ACP → Extensions → Theme Settings

  2. Enter your code into Global <head> Code

  3. Submit


Adding sidebar code

See:

  • Milk: Sidebar options (link needed)

  • H2O: Sidebar options (link needed)


Adding new code by manual editing

If you are only making a few small changes, you can add your own code by modifying the theme's HTML and CSS files.

These are located in:

yourforum.com/styles/your_theme/theme/
yourforum.com/styles/your_theme/template/

Adding new code in other locations

For larger and more substantial changes, send us a message. We'll discuss the scope of the changes you'd like to make, and suggest the best method of implementation.

Last updated 1 year ago

Was this helpful?

See:

Using this method, you might lose the changes you make when .

It is recommended to check phpBB's official , as the functionality you're looking for might already be available as a pre-packaged extension.

🏃
How to edit code files
updating the theme
extension database