Jump to content

Code to hide a library tile on Home Screen?


Recommended Posts

Posted

There's a new feature in the server that's buggin' me (& some friends) that I'm hoping can be resolved with some custom CSS magic.

 

'ServerWMC Recordings' (Live TV plugin) now shows up on the home screen & is now necessary to view recent recordings. Is there any way to hide the 'ServerWMC Recordings' tile without impact on the display of recent recordings?

 

Here's hoping... TIA

Happy2Play
Posted

I will have to look for my post on this, but are you referring to the My Media section?

Posted

I will have to look for my post on this, but are you referring to the My Media section?

 

Precisely. Thanks!

Posted (edited)

You just need to get the data-id for the library.  Click on the library and use the topparentid from url.

 

https://emby.media/community/index.php?/topic/30882-how-do-i-remove-collections-from-home-screen/?p=296830

 

I see the following URL:

 

http://localhost:8096/web/list.html?parentId=69e88d4e1462d56fb23d93d8a312d597&serverId=19ed211e30584810997fa68ecd1c0fbd

 

where I see a 'parentid', but adding to your code yields no change...

 

[data-itemid=69e88d4e1462d56fb23d93d8a312d597] {display: none !important;}

 

Did I miss something?

 

I see that standard library tile URLs contain a 'topparentid', while 'channel' tile URLs all look like URL above.

Edited by d00zah
Happy2Play
Posted

I see the following URL:

 

http://localhost:8096/web/list.html?parentId=69e88d4e1462d56fb23d93d8a312d597&serverId=19ed211e30584810997fa68ecd1c0fbd

 

where I see a 'parentid', but adding to your code yields no change...

 

[data-itemid=69e88d4e1462d56fb23d93d8a312d597] {display: none !important;}

 

Did I miss something?

 

I see that standard library tile URLs contain a 'topparentid', while 'channel' tile URLs all look like URL above.

 

Sorry looks like it changed to data-id instead of data-itemid. 

 

example as seen in browser console.

 

5abd8e68599bb_Untitled.jpg

Posted (edited)

Seems that changing the original:

 

'data-itemid' to 'data-id' was the only necessary change.

 

[data-id=69e88d4e1462d56fb23d93d8a312d597] {display: none !important;}

 

seems to have done the trick.

 

Thank you, @@Happy2Play !!!

Edited by d00zah

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...