Open harrisoftware opened 9 years ago
If you want to change the theme, you have to edit the adminder.php file (/vendor/kohkimakimoto/lavavel-adminer/src/Kohkimakimoto/Adminer/Resources), search for admire.css and remove the if statement leaving the echo behind and prefix the filename with /css/:
if(file_exists("adminer.css")){echo'<link rel="stylesheet" type="text/css" href="adminer.css">';}}
becomes
echo'<link rel="stylesheet" type="text/css" href="/css/adminer.css">';}
then put the adminer.css file you want to use in /public/css
Remember to do this again when you install a new adminer.php file.
I reopened this issue in case the package owner wishes to modify his package to include this fix.
Have you tried putting css file in the same folder as the adminer.php ? "Usage: Just put the file adminer.css alongside adminer.php."
Problem is likely due to Apache path aliasing. Check your Apache adminer.conf file (mine was located at /etc/apache2/conf-enabled/adminer.conf).
If:
Alias /adminer.php ..../path/to/adminer/installation/adminer.php
Add
Alias /adminer.css ..../path/to/adminer/installation/adminer.css
And restart apache (on debian 8)
sudo service apache2 restart
@kalegood I am using adminer on Ubuntu 18 it's work for me.Thanks
my adminer file css not working after I cleared all cache and previous chrome searching history???
Hi; Thanks for this package. But I cannot figure out where to put the adminer.css file to change the theme. Any help would be appreciated.
Warren