Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8742789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:33:40+00:00 2026-06-13T11:33:40+00:00

Active Admin says you can change the site title this way: Site Title Options

  • 0

Active Admin says you can change the site title this way:

Site Title Options
You can update the title or use an optional image in the initializer also. In addition you can set the link. By default there is no link and the title is set to the name of your Rails.application class name.

# config/initializers/active_admin.rb
config.site_title = "My Admin Site"
config.site_title_link = "/"    ## Rails url helpers do not work here
config.site_title_image = "site_log_image.png"

Also, they say you can configure titles by namespace as follows:

ActiveAdmin.setup do |config|
  config.site_title = "My Default Site Title"

  config.namespace :admin do |admin|
    admin.site_title = "Admin Site"
  end

  config.namespace :super_admin do |super_admin|
    super_admin.site_title = "Super Admin Site"
  end
end

I’m building a multi tenant site and I want the site_title to be based on the current tenant name. Is there a way to put a dynamic field in there that changes based on the tenant?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T11:33:41+00:00Added an answer on June 13, 2026 at 11:33 am

    I have achieved this by monkey-patching the SiteTitle class.

    Put this in an initializer and change it according to your user model:

    ActiveAdmin::Views::SiteTitle.class_eval do
        private
        def title_text
            if current_admin_user
                if current_admin_user.has_role? :admin
                    "Site Admin"
                elsif current_admin_user.has_role? :guest
                    "Site Guest"
                else
                    helpers.render_or_call_method_or_proc_on(self, @namespace.site_title)
                end
            else
                helpers.render_or_call_method_or_proc_on(self, @namespace.site_title)
            end
        end
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to use active admin with a project. This project also uses
Can Active Admin use my current Devise user model? It already has a column
Is there anywhere that I can find documentation on Active Admin's config options? I
the active admin docs says: If you are using Rails >= 3.1, you must
I'm new to Rails and I want to use Active Admin on my first
I started using active admin and I love it! However, for every change I
This is similar to my previous question Ruby On Rails Active Admin has_many changing
Rails 3.1.1 Active Admin 0.4.4 formtastic 2.1.1 This is the active admin controller for
I'm starting my first project with Active Admin. To use another model for my
I created this partial in the dashboards.rb file for Active Admin. I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.