October CMS resources and help articles

Simple and to the point. Optimized by the community.

Deploy with backend brand settings

by larryb, last modified on November 20th, 2021

This trick will allow you to deploy your site with backend brand settings already configured (and its pretty easy too)!

When deploying your site, the backend brand will be set to October defaults which requires a login to the backend to update things like the logo, tag line and colors.

  1. Create a new file in your app's config directory: config/brand.php
  2. Paste the block of code below into your brand.php file:

return [

    | Specify the default backend brand settings
    | These parameter values can be overridden by the backend Brand settings

    'logoPath' => '$/author/plugin/assets/images/logo.png',
    'faviconPath' => '$/author/plugin/assets/images/favicon.ico',
    'appName' => 'APP NAME',
    'tagline' => 'APP TAGLINE',
    'primaryColor' => "#b4b4b4",
    'secondaryColor' => "#ffcc00",
    'accentColor' => "#B4B4B4",
    'menuMode' => 'inline', // options: inline, inline_no_icons, tile, collapse
    'customLessPath' => '$/author/plugin/assets/styles/backend.less',
  1. Update the values relative to your application. Note the image paths must be relative to your filesystem and not a URL.

I want to thank @LukeTowers for pointing this functionality out to me.



Post on November 23rd, 2019 10:16 AM

Just what I was looking for! Thank you! Although I think the backend uses .png for the favicon?

Post on January 18th, 2021 9:22 AM
'primaryColor' => "#b4b4b4",
    'secondaryColor' => "#ffcc00",
    'accentColor' => "#B4B4B4",

does not seem to be working

We use cookies to measure the performance of this website. Do you want to accept these cookies?