Admin menu success message

See the top answer on this Stackoverflow question. Basically you need to use: decodeURI((RegExp(name + ‘=’ + ‘(.+?)(&|$)’).exec(location.search)||[,null])[1]); Get URL parameter with jQuery

Styling issue with custom menus and sub menus

You can try using the .current-menu-item li a”first-child selector. Here is an example I’ve used in the past to highlight the current menu item only: #menu .current-menu-item { background:white; } #menu .current-menu-item li a:first-child { color:white!important; } #menu .current-menu-item a { color:black !important ; } You will need to change the #menu to your id … Read more

Custom menu styling

I think you can use the text-indent for this level, but you must set the text-indent for all a -tags of the class sub-menu also set to 0, not -999px. Example: #menu-main-navigation .link-experience a { display: block; height: 63px; width: 167px; text-indent: -999px; } .sub-menu a { text-indent: 0px !important; }

Remove current-menu-item for a specific link

I’d try to format my CSS rules accordingly. If you’re using body_class() you can always target single-posttype so as a quick example .single-posttype .current-menu-item { display: none; } Will hide the current menu item when you’re on a specific post type. If this makes sense hehe. Another way would be creating your own navigation menu … Read more

Can’t insert internal links and menu errors appearing

i also had this problem. the problem is that you are adding action to *admin_init* … try something like this: add_action( ‘admin_menu’, ‘remove_unused_menus’ ); function remove_unused_menus() { remove_menu_page(‘link-manager.php’); remove_menu_page(‘edit-comments.php’); } notice the use of *admin_menu* instead of *admin_init* some require admin_init…but i forget which/why.