Multisite – only Superadmin user can add html code in menu labels
-
Is this a bug?
I’ve just discovered that on a multisite installation, only Superadministrators can add html to Menu Labels. I have some linebreaks
<br/>in some of my menu labels. Unfortunately it seems that any time a colleague, logged in as an administrator, saves the menu, all the code in the labels is lost. If I grant them Superadmin privileges then the code is kept in the label when saved.I do not wish these colleagues to be Superadministrators.
-
It’s definitely not working as it should be.
Are the non-superadmins able to otherwise edit the menu? For example, can they move/add a page, and it gets saved properly? (ie. is it a menus-in-general issue, or specifically the HTML that is the issue?)
Have you tried deactivating all your plugins (or switching to Twenty Fourteen if that doesn’t work) see if this solves the issue?
Superadministrators can add html to Menu Labels.
That actually sounds right. HTML would be throttled in menus.
Are the non-superadmins able to otherwise edit the menu? For example, can they move/add a page, and it gets saved properly? (ie. is it a menus-in-general issue, or specifically the HTML that is the issue?)
Have you tried deactivating all your plugins (or switching to Twenty Fourteen if that doesn’t work) see if this solves the issue?
Thanks for the response Bet and Ipstenu,
Non-superadmins (in this case admin) can do everything else with the menus – move, add, create etc, and save. It’s just if they put in html (in this case
<br/>) it get’s removed upon save, as well as any html that was previously put in by superadmin.I’ve deactivated every plugin, one by one, and also switched to the default TwentyFourteen theme but still the problem remains.
My only option at the moment is to grant superadmin privileges to my admin so as not to lose the
<br/>‘s but it’s really not ideal.Admins aren’t ‘true’ admins on a Multisite. They lack the ability to do a few things with HTML.
But menu labels really shouldn’t be getting HTML. If all your menus need the BR below, why not customize the CSS to force that in for them? Or what problem are you having that causes you to need the BR?
I realise having html in menu labels isn’t ideal but client wants to be able to split certain labels over 2 lines. It’s very much an aesthetics thing…
Have you thought about editing the themes to allow for the “Description” field to be used in the menu?
There IS another way around it, but it involves allowing admins to use unfiltered HTML, and on a multisite that’s really dangerous.
The topic ‘Multisite – only Superadmin user can add html code in menu labels’ is closed to new replies.