We have noticed that when we make changes on our user’s profile (for instance marking a notification as “read”), the info-alert is displayed twice, once above and once below the content. We would like to see if there is a way to disable the one below the content?
Thanks a lot!
The pilgrim teamMay 30, 2020 at 17:48 #13360
@pilgrimteam Of course there is! Some simple CSS lines could remove this from your screen. However, are you sure that you want to hide this. Some user might have very long lists or notifications and they won’t be able to understand the changes made if the top of their list is not also displayed. Best example, on mobile web browsers.June 1, 2020 at 16:38 #13412
Hehe I didn’t think about it from this point of view. Since we’ve been testing with profiles that don’t have a lot of content, it was just a lot of colours in one place. I think I’ll remove it using CSS then (most of our users are middle aged ppl that are afraid of too much content, too many colors, too much information and will never use their smartphone to edit their profile).
Though since it’s twice the same element, with the same class, I’m a bit confused as how to target the element.
I was thinking of using a direct child selector “>” since one of the alerts (the one above that I want to keep) is wrapped in a div and wouldn’t be targeted. But it’s maybe not the easiest way?
If you have any advice to offer I’ll gladly take it, but no sweat if you can’t provide this kind of customizations, I understand!
Thanks for your help, and have a great day!June 1, 2020 at 17:40 #13426
@pilgrimteam I totally get it. If you wish to use some CSS to hide it from your page, you can use the sibling selector
~. This will work for element that have the same parent, but don’t directly follow each other in the DOM. For more on this, please read the following post:
Unfortunately, you’re correct. We’re part of the very few theme authors that don’t offer any customization work, even paid. We only share snippet only to solve issues with our theme. Any further request for CSS snippets will have to be part of a defect that needs to be fixed urgently. No snippets will be shared otherwise.June 2, 2020 at 18:07 #13487
The topic ‘Alerts appear twice on profile pages’ is closed to new replies.