How might one hide the “page views” content in the Page Details dropdown? That content has not been accurate for a while and is causing some confusion with editors.
Add this in backend.css…
#lw-toolbar .lw-dropdown-menu > #lw_pages_statistics_container {
display: none;
}
Hmm, that did not work. I was hoping it was a cache that would clear overnight.
I will try reworking the styling slightly. Perhaps I had a weird typo or something.
Ah – I think backend.css might only load on the back-end of LiveWhale – if you want a toolbar change to persist on the front-end, you may need to sneak it into your global theme. You can use the CSS parent body.livewhale
if you want to ensure it doesn’t appear for logged-out users.
@karl is right, my bad. I completely missed that. We have similar things that we add in our global theme to hide LW UI from users. I’m just so used to modifying backend.css, that’s where my brain went. Sorry @Grether .
I have tried five different approaches, none working, haha. What praytell might be the proper way for one to “sneak it into” one’s global theme?
We have a file at…
/_ingredients/themes/global/styles/livewhale.scss
According to the comment at the top of that file, it is “Loaded on front-end pages when logged in”, so that is where I put CSS rules like this. If you don’t have that file, I think you can just create it.
Otherwise, you should be able to drop that rule in any other css/scss file that is used in your theme. Probably start by looking at /_ingredients/themes/global/styles/widgets.scss
. You could add that CSS rule in there. Or that file might be a compilation of other css/scss files, and if so, you can add that rule in one of the included files.
YMMV depending on how your site styles are architected.
A-ha! Tweaking global/styles/livewhale.scss worked. Thanks for your help. Forum FTW.