Skip to main content
Solved

Hide topic age in Topic Banner


cclements
Forum|alt.badge.img
  • Contributor ⭐️⭐️⭐️
  • 23 replies

Hi Community experts! I feel like this was asked a year or more ago, and perhaps even a workaround identified, but today is it possible to hide the topic age from being displayed in the Topic Banner widget? In my screen cap, you can see the yellow banner with our Welcome post - 1 year ago (although it’s been updated, etc.) This might be disregarded by the new member because they think it’s outdated with the age, so I’d rather just have the title alone.

cc: @Julian @kfolsom 

Best answer by TomW

This was very helpful, thanks @rhall! I did see the date also went AWOL for me in the ‘featured_side’ widget. This helped me to only hide it on the top bar:

.qa-topic_banner-container .thread-meta-item__date {
    display: none;
}

 

View original
Did you find this topic helpful?

5 replies

DannyPancratz
Forum|alt.badge.img+7
  • VIP ⭐️⭐️⭐️⭐️⭐️
  • 948 replies
  • July 23, 2024

I’d imagine there’s a way to do this via CSS, but I couldn’t find a way to pinpoint it when I looked with the Inspect browser tool. (This isn’t my forte) 

My two cents: This is CSS you’d want to add/remove as necessary. It makes sense for your use case above. But if you want to promote an event, for example, the date shown in the banner is the date of the event (as opposed to date of the article) 


  • Expert ⭐️
  • 101 replies
  • July 24, 2024

@cclements I believe the CSS you will need is this…..
 

.body-wrapper .thread-meta-item__date {
    display: none;
}

 


TomW
  • Helper ⭐️⭐️
  • 29 replies
  • Answer
  • August 15, 2024

This was very helpful, thanks @rhall! I did see the date also went AWOL for me in the ‘featured_side’ widget. This helped me to only hide it on the top bar:

.qa-topic_banner-container .thread-meta-item__date {
    display: none;
}

 


  • Expert ⭐️
  • 101 replies
  • August 16, 2024

@TomW I thought I had responded, but clearly not. Nice work! I should have tested mine a little better. But I’ll be honest, I just went to Chrome Developer Tools, had a look for the element and carried out a quick test in our sandbox. I think you deserve the “best answer” here.


TomW
  • Helper ⭐️⭐️
  • 29 replies
  • August 16, 2024

Only thanks to you @rhall, shared victory!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings