• Hey, I was trying to edit my admin bar and it caused some problems. please post full code of admin bar. I’m using latest wordpress version.

Viewing 10 replies - 1 through 10 (of 10 total)
  • What do you mean by “trying to edit my admin bar”? What exactly did you do?

    Thread Starter Hardeep Asrani

    (@hardeepasrani)

    @esmi I tried to remove wordpress image menu option (full list) from admin bar. It’s working fine on site but showing following error on admin panel:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wp_admin_bar_wp_menu’ not found or invalid function name in /home/content/01/10875201/html/wp-includes/plugin.php on line 487

    What exactly did you do? What files did you edit?

    Thread Starter Hardeep Asrani

    (@hardeepasrani)

    @esmi i edited admin-bar.php

    Download a fresh copy of WordPress, extract wp-includes/admin-bar.php and upload that file to your site’s wp-includes folder. Then promise to never, ever, edit a WordPress core file again – otherwise a kitten will die. 😉

    Seriously, editing core scripts can bring down your entire site and/or open security holes for hackers to use. Just don’t do it.

    If you want to add something to the admin bar, post here or in the Hacks forum asking to help to do it the correct way.

    Thread Starter Hardeep Asrani

    (@hardeepasrani)

    @esmi thanks for the info…it’s showing following on admin panel

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'wp_admin_bar_wp_menu' not found or invalid function name in /home/content/01/10875201/html/wp-includes/plugin.php on line 487

    Can you please reply with admin-bar.php’s full code from your site’s template. I’am on a slow network, it’ll be hard to download full wordpress again. Thanks

    Thread Starter Hardeep Asrani

    (@hardeepasrani)

    @esmi wait..I found it online…let me see if it works

    Sorry but no. We do not post whole chunks of core files here. You need to download a fresh copy of WordPress.

    Thread Starter Hardeep Asrani

    (@hardeepasrani)

    @esmi it worked…can you help me with this now? http://wordpress.org/support/topic/how-to-remove-wordpress-menu-list-from-admin-bar

    I’m teen and news to wp. I edited and customized lots of files but not this one.

    Thread Starter Hardeep Asrani

    (@hardeepasrani)

    @esmi Great news… Instead of messing with codes. I hid that by adding following css :p

    .wp-admin-bar-wp-logo{
    display:none
    }

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Need Admin Bar's Full Code’ is closed to new replies.