Hide elements from the User Profile Actions Menu.

Hide elements from the User Profile Actions Menu.

Nosūtīja Edwar Okoye
Atbilžu skaits: 5


Hi all,

I have been trying to hide/disable some elements from the user profile action menu,

but by the moment was not posible find a solution.

Some of you could help me with that ?

I am sure if this elements could be hidenn from the site administration panel or if I have to change some parts of the moodle code.

Attached a image of the elemenstas that i want to hide/delete.

Moodle Version 3.8.1

Thanks in advance !




Vidējais novērtējums: -
Atbildot uz Edwar Okoye

Re: Hide elements from the User Profile Actions Menu.

Nosūtīja Jon Bolton
Particularly helpful Moodlers attēls Testers attēls
Which theme is this?
Atbildot uz Jon Bolton

Re: Hide elements from the User Profile Actions Menu.

Nosūtīja Edwar Okoye
Hi Jon,

I have a pay template/theme, Edwiser Remui, but for the profile page i have deactivated the custom page profile and i use the default moodle template.
I think that for the profile page my moodle use the default "boost" theme.

Can you help me whit this ?
Atbildot uz Edwar Okoye

Re: Hide elements from the User Profile Actions Menu.

Nosūtīja Brandon Jimenez
Hello Edwar,
a little bit of custom css would do the trick, check with the inspector the elements, so if the are a list, you can get creative with something like
li:nth-child(n+CHANGE THIS FOR THE STARTING ELEMENT) {
display:none;
}

hope it helps
Atbildot uz Brandon Jimenez

Re: Hide elements from the User Profile Actions Menu.

Nosūtīja Edwar Okoye
Hi Brandon,

Thanks for your reply, but I cannot find the file where the list should be there.
You have some idea of in wich file should be the list in css ?

regards.

Borja
Atbildot uz Edwar Okoye

Re: Hide elements from the User Profile Actions Menu.

Nosūtīja Jon Bolton
Particularly helpful Moodlers attēls Testers attēls

What is listed in the User Menu Items in the Site Admin Theme Settings page at /admin/settings.php?section=themesettings ?