Skip to content
Isaac Bennetch edited this page Feb 16, 2021 · 5 revisions

phpMyAdmin look can be customised using themes, see FAQ 2.7 how to use them.

Themes are distributed on https://www.phpmyadmin.net/themes or you can make your own changes locally.

We try to document any changes in Theme_Changes to make ongoing theme development easier.

Theme per server

Here is a little tutorial how to set up themes per server. I'm not sure if this is the right way to go but works for me. As an Example take an phpMyAdmin Installation that has three server configured in config.inc.php

$i=0;
$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$_COOKIE['pma_theme-' . $i] = 'big_green';

$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = '127.0.0.2';
$_COOKIE['pma_theme-' . $i] = 'big_blue';

$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = '127.0.0.3';
$_COOKIE['pma_theme-' . $i] = 'big_red';
# Needed for server base theme
$cfg['ThemePerServer'] = true;

All that is need to get to see the themes is to create the themes directory see FAQ 2.7 or read on. I just copied themes/original and made some changes to the background color

cd themes cp ./original ./big_green vi ./big_green/css/theme_right.css.php vi ./big_green/css/theme_left.css.php

Now delete the cookies in your browser and login to phpMyAdmin

Category:Feature

Clone this wiki locally