nabo Posted February 28, 2020 Share Posted February 28, 2020 Hello sometimes a page can be very very long. Having the save e publish buttons at the beginning and at the end of the page is great... but maybe it would be better if these buttons will be always visibile at right top of the page after scrolling. Link to comment Share on other sites More sharing options...
BitPoet Posted February 28, 2020 Share Posted February 28, 2020 A little hack like this for site/ready.php might be enough for that (only tested on desktop and not perfect when it comes to alignment): $this->addHookAfter('ProcessPageEdit::execute', function($event) { $event->return .= "<script> $('#pw-content-head-buttons').css('position', 'fixed'); $('#pw-content-head-buttons').css('right', '5%'); </script> "; }); 2 Link to comment Share on other sites More sharing options...
dragan Posted February 28, 2020 Share Posted February 28, 2020 Admin on Steroids has an option where you can map CTRL + S to the save function. That way you don't even have to care about the button's position (but might be a bit overkill if you only need this module for only this feature). 4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now