Add separation to Menu

I want add separation to generated Menu (A simple


will be fine but I can not find any option to add such thing in Menu Editor. How can I customize the Menu?

I don’t think Menu Editor has the built-in feature for creating separator line for menu items.

However, you may use .after() jQuery https://api.jquery.com/after/ in global Startup Script in order to insert the hr tag after the certain menu item.

I am trying to add following code to Server Events > Global > All Pages > MenuItem_Adding but it is throwing error.This is the code : $(#mi_categories).after( “


” );This is the error : Parse error: syntax error, unexpected ‘(’, expecting variable (T_VARIABLE) or ‘$’ in D:\wwwroot\ewshared11.php on line 858Am doing something wrong ? Please guide.

You cannot add jQuery code in MenuItem_Adding server event.As I mentioned before, you should add the jQuery code in global Startup Script.

Done!
Added following code to Client Script > Global Script > Startup Script

$(“#mi_categories”).after(‘


’);and its wonderfully done.Thanks for your kind and prompt reply.