Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Admin Bar

  • @martinm92

    Participant

    Im sorry for having to create a new topic on the admin bar I have been searching everywhere and everyone has given the same answer however it isn’t working for me.

    WordPress 3.5.1
    Buddypress Version 1.7.2

    The problem is I have got rid of the admin bar but I have been left with the 25px space. However it isn’t empty white space, it has just pushed my content down, my background still remains there. I have tried body { padding-top: 0px !important; } that didn’t work, I have tried #wp-admin-bar { height: 0 !important; } that also hasn’t worked.. I have a screenshot below, my site is currently being worked on locally.

    Any help is appreciated!

Viewing 13 replies - 1 through 13 (of 13 total)
  • @naijaping

    Participant

    @martinm92, put the following code in functions.php of your theme. assuming you are using child theme.

    // Remove html margin from body
    function my_function_admin_bar(){ return false; }
    add_filter( 'show_admin_bar' , 'my_function_admin_bar');

    @aces

    Participant

    That was a similar bug in bp v1.7.0 which was fixed in v 1.7.1 see: https://buddypress.org/support/topic/white-line-under-head-menu/#post-163065

    You could try the ‘temporary’ fix for that bug: http://pastebin.com/sSBGjPNi in your child theme’s functions.php file…

    @martinm92

    Participant

    I have added that and it didn’t change anything 🙁

    EDIT: Sorry it worked! I used naijaping’s function, thanks very much!

    @martinm92

    Participant

    I have one other problem, how do I echo an error when people get a wrong username or password? At the moment it re-directs to the default wordpress login, which doesn’t look great..

    @naijaping

    Participant

    @martinm92, a link to you test site ?

    @martinm92

    Participant

    I am currently working on it locally, I just thought it might be a known issue and quick and easy fix. I think it re-directs by default to the default wordpress login page.

    @naijaping

    Participant

    @martinm92, use this functions stolen from modemloopers plugin. let me know if it work for you

    http://pastebin.com/TmaZQ5fb

    @martinm92

    Participant

    Excellent, that was just what I was looking for, thanks for your help!

    @naijaping

    Participant

    you welcome

    @martinm92

    Participant

    hi naijaping, I was wondering is there a quick bit of code to add the lost password option to the login form?

    @bphelp

    Participant

    @martinm92
    You can try:
    <?php wp_lostpassword_url(); ?>

    @naijaping

    Participant

    @martinm92, if you want to rename it what ever you like or style it, you can try:

    <a class="lostpass"href="http://www.yoursite.com/wp-login.php?action=lostpassword">Lost password?</a>

    then you can change Lost password to whatever you like

    @martinm92

    Participant

    Hey, I was wondering is there a known bug with avatars? With gravatar’s it is appearing like this – http://f1huddle.co.uk/correct.png

    However for default avatars, I’m getting broken images – http://f1huddle.co.uk/error.png

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Resolved] Admin Bar’ is closed to new replies.
Skip to toolbar