Jump to content

Hiding the Season tab on the roster widgets


Rob Bedeaux

Recommended Posts

Have you ever wanted to create roster widgets and stick them in a tab element? It's a great way to save space. However, each tab will have a table (presumably what would normally be in the top of the roster widget). Since that would look silly, here is a bit of code to hide the label on the roster widget

 

<style>
[id^="widget_roster_widget"] .sportTableLabel {
   display: none}
</style>

 

BEFORE

Before.png.72478110a544f6329f24fad0c7d777b7.png 

AFTER

After.png.4e273d27cb85a350a388f2cb3598e44c.png 

Rob Bedeaux (he/him/his)
Director, Partnerships & Symphony Marketing
E rob.bedeaux@nbcuni.com

NBC SPORTS NEXT & FANDANGO

Link to comment
Share on other sites

  • 4 weeks later...

Hi Robb,

 

I took a look at this, and the id for a statistics widget is: "widget_player_stats_widget" 

 

Here's the full code snippet: 

<style>

[id^=widget_player_stats_widget] .sportTableLabel {

display: none}

</style>

 

 

Before inserting code in page head code:

Screen_Shot_2016-05-19_at_12_46.01_PM.thumb.png.b8e18d86e4453387cc149ec481b669ff.png 

After inserting code in page head code:

 

Screen Shot 2016-05-19 at 12.47.42 PM.png 

- Loren

Screen_Shot_2016-05-19_at_12_47.42_PM.png.5ee4c4485cb6e8768f9f6353fc5d4151.png

Link to comment
Share on other sites

  • 6 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...