Support » Fixing WordPress » Need Admin Bar's Full Code

  • Hardeep Asrani

    (@hardeepasrani)


    Support Team Volunteer

    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)
  • esmi

    (@esmi)

    Forum Moderator

    What do you mean by “trying to edit my admin bar”? What exactly did you do?

    Hardeep Asrani

    (@hardeepasrani)

    Support Team Volunteer

    @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

    esmi

    (@esmi)

    Forum Moderator

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

    Hardeep Asrani

    (@hardeepasrani)

    Support Team Volunteer

    @esmi i edited admin-bar.php

    esmi

    (@esmi)

    Forum Moderator

    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.

    Hardeep Asrani

    (@hardeepasrani)

    Support Team Volunteer

    @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

    Hardeep Asrani

    (@hardeepasrani)

    Support Team Volunteer

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

    esmi

    (@esmi)

    Forum Moderator

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

    Hardeep Asrani

    (@hardeepasrani)

    Support Team Volunteer

    @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.

    Hardeep Asrani

    (@hardeepasrani)

    Support Team Volunteer

    @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.