kohkimakimoto / LaravelAdminer

It's a embedded adminer in laravel application.
10 stars 3 forks source link

where to put adminer.css to change theme #4

Open harrisoftware opened 9 years ago

harrisoftware commented 9 years ago

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

harrisoftware commented 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.

harrisoftware commented 9 years ago

I reopened this issue in case the package owner wishes to modify his package to include this fix.

subdesign commented 8 years ago

Have you tried putting css file in the same folder as the adminer.php ? "Usage: Just put the file adminer.css alongside adminer.php."

kalegood commented 7 years ago

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

meigiyanto commented 2 years ago

@kalegood I am using adminer on Ubuntu 18 it's work for me.Thanks

nitesharora945 commented 8 months ago

my adminer file css not working after I cleared all cache and previous chrome searching history???