How to Override and Center the Footer in ActiveAdmin 4.x #8731
Closed
umairliaqatali
started this conversation in
General
Replies: 1 comment
-
|
Hello, can't mark your post as solution, so I'm quoting here
Ref: https://github.com/activeadmin/activeadmin/blob/master/UPGRADING.md#from-v3-to-v4-beta |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In older versions of ActiveAdmin, it was possible to customize the admin footer using config.footer or even with a footer do ... end block inside resource/page registration. However, in ActiveAdmin 4.x, these methods have been removed or deprecated.
I initially tried using:
config.footer = "..."
and
footer do ... end
But both resulted in errors or had no effect in ActiveAdmin 4.x.
Solution:
Override the Footer Partial in Your App
Create the file:
app/views/active_admin/_site_footer.html.erb
write your footer as you like. e.g
Beta Was this translation helpful? Give feedback.
All reactions