Jump to content

Remove items from the menu and submenu


igeoorge

Recommended Posts

igeoorge

Hi friends,

These two codes:

/ * ---- Remove Sub-Menu ---- * /
.itemsViewSettingsContainer .btnFilter, .itemsViewSettingsContainer .btnViewSettings {display: none;}


/ * ---- Remove selection from the menu and emby the menu ---- * /
div.dynamicRoutes h3: nth-child (9) {display: none;}
div.mainDrawer-docked a: nth-child (-n + 3) {display: none! important;}
div.mainDrawer-docked h3: nth-child (8) {display: none;}


They are no longer working in beta version 4.5.20.

See attached images.

can you help me?

Sem título.png

aa.png

Link to comment
Share on other sites

Happy2Play

The header option in Movies/Filmes would affect all other content type headers also as discussed in other topics.  You would have to modify the specific js file.

May need a translation, but is the second image User Settings (user icon). Display and Home Screen?  Would appear that "navMenuOption" is set to display !important.

div.dynamicRoutes a[title="Display"], div.dynamicRoutes a[title="Home Screen"] {display: none !important;}

This affect the admin from getting to these options also if needed.

 

 

Don't remember what this code was removing but what you have posted has a lot of additional spacing in comments and in the code that breaks the code.

/*----Remove Sub-Menu----*/
.itemsViewSettingsContainer .btnFilter, .itemsViewSettingsContainer .btnViewSettings {display: none;} /*Per Library Filter and 3 dot menu buttons*/


/*----Remove selection from the menu and emby the menu----*/
div.dynamicRoutes h3:nth-child(9) {display: none;} /*Remove "Emby Web header" on User icon screen*/
div.mainDrawer-docked a:nth-child(-n + 3) {display: none !important;} /*Remove "Display and Home Screen" on dashboard*/
div.mainDrawer-docked h3:nth-child(8) {display: none;} /*Remove "Emby Web" header on dashboard*/

commented each code and verified working

Looks like this code goes to these topics.

https://emby.media/community/index.php?/topic/85069-help-with-css/&do=findComment&comment=871426 "Remove selection from the menu and emby the menu"

Still looking for the other.

 

Edited by Happy2Play
  • Thanks 1
Link to comment
Share on other sites

igeoorge

Hi @ Happy2Play, thanks for responding so quickly.

I use the google translator to communicate here on the Forum.

I think he left the broken codes, sorry.

I forgot that I need to edit the file and that this is not solved with CSS code.

Once again, thank you very much for your help! ❤️

Link to comment
Share on other sites

igeoorge

Hi @Happy2Play,

I have a new problem.

The back button, in some moments it appears and in others it does not appear.

I will leave all my CSS code attached.

Could you help me find out what it can be?

01.png

02.png

CSS.txt

Edited by igeoorge
Link to comment
Share on other sites

Happy2Play
51 minutes ago, igeoorge said:

Hi @Happy2Play,

I have a new problem.

The back button, in some moments it appears and in others it does not appear.

I will leave all my CSS code attached.

Could you help me find out what it can be?

01.png

02.png

CSS.txt 2.19 kB · 0 downloads

It is not your css.  I can reproduce without any css.  I'll open a topic in testing area.

Edited by Happy2Play
added link
Link to comment
Share on other sites

Happy2Play
50 minutes ago, igeoorge said:

Hi @Happy2Play

Could you help me remove the emby web name here in the profile?

Sem título.png

The above code does that.  Same with using your css.txt

div.dynamicRoutes h3:nth-child(9) {display: none;} /*Remove "Emby Web header" on User icon screen*/

 

test3.jpg.4e66d588d762faa0a3f6592f005b160d.jpg

But i think I see what is happening as it is tied to the Users "Allow this user to change their password and profile image" option so it changes the h3:nth-child value as it automatically adds/removes Password and Profile from User.  So I guess you would use both to cover if you have the option enabled or disable.

So 7 if disabled and 9 if enabled

div.dynamicRoutes h3:nth-child(7) {display: none;} /*Remove "Emby Web header" on User icon screen*/

div.dynamicRoutes h3:nth-child(9) {display: none;} /*Remove "Emby Web header" on User icon screen*/

 

 

 

  • Like 1
Link to comment
Share on other sites

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...