🚀
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
  • Pre-installed fonts
  • Changing font face
  • Changing font sizes
  • Adding a new font face

Was this helpful?

  1. Feature Guides
  2. Milk theme

Milk: Font options

Pre-installed fonts

Milk comes pre-installed with the following fonts:

  • Roboto (Default)

  • Roboto Slab

  • Bubbler One

  • Dosis

  • Exo 2

  • Raleway

  • Rubik

  • Quicksand


Changing font face

  1. Open Flighteck extension (control panel)

  2. Find "Font"

  3. Set as desired

  4. Submit


Changing font sizes

Milk doesn't currently have a FlightDeck option for scaling options (maybe soon).

In the meantime, font sizes can be adjusted manually:

  1. Open: yourforum.com/styles/Milk_v2/template/overall_header.html

  2. Find:

    <style type="text/css">body {font-family: "Roboto Slab", Arial, Helvetica, sans-serif; font-size: 14px;}</style>
    	
  3. Nearby, locate the font whose size you want to change

  4. Reduce the font-size value. All fonts scale relative to this value.


Adding a new font face

In this example we will add Montserrat as a new font option to FlightDeck.

1. Add flightdeck switch

  1. Open: yourforum.com/ext/planetstyles/flightdeck/styles/styles_config.json

  2. Find:

    "Font": {
    	"name": "font_family",
    	"type": "list",
    	"help": "Set the font face. Previews can be found in description'<br />Default: Roboto.",
    	"values": [
    		"Roboto",
    		"Roboto Slab",
    		"Bubbler One",
    		"Dosis",
    		"Exo 2",
    		"Raleway",
    		"Rubik",
    		"Quicksand"
    	]
    },
    	
  3. Add "Montserrat" on a new line, respecting the JSON formatting rules. Eg:

    "Font": {
    	"name": "font_family",
    	"type": "list",
    	"help": "Set the font face. Previews can be found in description'<br />Default: Roboto.",
    	"values": [
    		"Roboto",
    		"Roboto Slab",
    		"Bubbler One",
    		"Dosis",
    		"Exo 2",
    		"Raleway",
    		"Rubik",
    		"Quicksand",
    		"Montserrat"
    	]
    },
    	
  4. Save and upload file

2. Building the font family

  1. Click "+ Select this style" next to the following fonts weights: 300, 400, 500, 600

  2. Click "Embed"

  3. Keep this information handy

3. Integrating into Milk's front-end

  1. Open: yourforum.com/styles/Milk_v2/template/overall_header.html

  2. Find:

    <!-- ELSE -->
    	<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
        <style type="text/css">body {font-family: "Roboto", Arial, Helvetica, sans-serif; font-size: 14px;}</style>
    <!-- ENDIF -->
    	
  3. On a new line, before the <!-- ELSE --> , add the references to the Montserrat font (using the 'Embed' information in the earlier steps as a reference):

    <!-- ELSEIF STYLE_SETTINGS_CONFIG_FONT_FAMILY == "Montserrat" -->
    	<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap" rel="stylesheet">
    	<style type="text/css">body {font-family: 'Montserrat', sans-serif; font-size: 14px;}</style>
    	

4. Repeat all steps for overall_header_simplified.html

This is used on login pages.

There is no need to re-install the FlightDeck extension

Last updated 1 year ago

Was this helpful?

See:

Find the font you want to use on

5.

✨
🥛
How to edit code files
Google Fonts
Purge cache