-
-
- Submit Updated Articles to Bing and Yandex with IndexNow in Joomla
- Add Published and Modified Date Meta Tags to Joomla
- Add Open Graph and Twitter Card Tags to Joomla
- Auto-Generate Meta Descriptions from Article Text in Joomla
- Add Noindex to Specific Pages in Joomla
- Verify Your Joomla Site with Google Search Console
-
- Add a View as Markdown Link to Joomla Articles
- Display the Last Modified Date in Joomla Articles
- Embed Iframes in Joomla
- Automatically Link Twitter (X) @mentions in Joomla Articles
- Open External Links in a New Tab in Joomla
- Display Estimated Reading Time in Joomla Articles
- Replace Old URLs in Joomla
- Search and Replace in Joomla
-
- Add a Footer Line to the Joomla Administrator
- Show a Staging Banner in the Joomla Administrator
- Remove the "All" Option from Admin List Limits in Joomla
- Add a Cookie Consent Banner to Joomla
- Make the Administrator Navigation Sticky in Joomla
- Add Google Fonts to Joomla
- Add a Facebook Messenger Chat Button to Joomla
- Add a Reading Progress Bar to Joomla
- Add a Custom Scrollbar to Joomla
- Show Confetti on a Thank You Page in Joomla
- Add Smooth Scrolling to Joomla
- Add a Back to Top Button in Joomla
- Add a WhatsApp Chat Button in Joomla
-
- Protect the Administrator with a Secret URL Key in Joomla
- Show a Welcome Message on First Login in Joomla
- Log Out Idle Administrators in Joomla
- Assign New Users to a Different User Group Automatically in Joomla
- Redirect Visitors by Country in Joomla
- Redirect Users After Login by User Group in Joomla
- Block User Registration with Certain Usernames in Joomla
- Block User Registration by Country in Joomla
- Block User Registration by Email Address in Joomla
- Block User Registration by IP Address in Joomla
- Remove the Forgot Password and Username Links in Joomla
- Remove the Generator Meta Tag in Joomla
- Let Users Log In with Their Email Address in Joomla
- Block Traffic by Country in Joomla
- Block Bot Traffic in Joomla
- Block Traffic by IP Address in Joomla
Make the Administrator Navigation Sticky in Joomla
Keep the Joomla backend's top bar, toolbar and side menu in view while you scroll long lists and edit forms, using one CSS snippet.
Halfway down a list of 200 articles, the side menu and the top bar are long gone, and getting to another component means scrolling all the way back up. The toolbar with the Save button sticks, but nothing else does. You can make the administrator navigation sticky in Joomla with one CSS snippet in Code Snippets.
The snippet goes into the Admin Header location, which is part of Code Snippets Pro. It's written for Atum, the default administrator template in Joomla 4, 5 and 6.
The CSS snippet code
The snippet pins the top bar to the top of the window, moves the toolbar right under it, and keeps the side menu in view. A menu taller than the window scrolls on its own, so every item stays reachable.
/* Height of the Joomla top bar. Atum uses 66px. */
:root {
--tcs-admin-header-height: 66px;
}
/* Keep the top bar in view. */
.header {
position: sticky;
top: 0;
z-index: 1030;
}
/* The toolbar already sticks to the top. Move it under the top bar. */
.subhead {
top: var(--tcs-admin-header-height);
}
/* Keep the side menu in view, and let long menus scroll on their own. */
#sidebar-wrapper {
position: sticky;
top: var(--tcs-admin-header-height);
align-self: flex-start;
height: calc(100vh - var(--tcs-admin-header-height));
overflow-y: auto;
}
Atum's top bar is 66 pixels tall. If a template style or a plugin changes that, edit --tcs-admin-header-height and the toolbar and menu move with it.
How to add this snippet
- Install Code Snippets if it isn't installed already.
- Log into your Joomla backend.
- Go to Components → Tassos Code Snippets.
- Click New.
- Enter a title, for example Sticky admin navigation.
- Set Code Type to CSS.
- Set Location to Admin Header.
- Paste the code above into the editor.
- Click Save & Close.
Check that it works
- Go to Content → Articles, or any list long enough to scroll.
- Scroll down.
The top bar, the toolbar and the side menu stay where they are while the list moves underneath. Narrow the browser window to tablet size and the same holds.
To learn more about CSS snippets, read the CSS snippet docs, and see Admin Locations for the other places a snippet can run in the backend.