Skip to:
Content
Pages
Categories
Search
Top
Bottom

Padding Issue after Admin Bar Removal


  • Ganzuelo
    Participant

    @ganzuelo

    I searched around for a solution and I’m not getting anywhere.

    Regardless of using a plugin or modifying my functions.php file to remove the admin bar I am left with a gap on my buddypress pages.

    I am using Salient for my theme. The author does not offically support BuddyPress.

    I’ve tried disabling plugins, inspecting the code and I can’t figure it out at all.


    The grey you see on top is from my browser..

    foxtrottango.net/members

Viewing 9 replies - 1 through 9 (of 9 total)

  • @mercime
    Participant

    @mercime

    @ganzuelo Either you’ve fixed the issue or that is seen only by logged in users because I checked it out using FF and Chrome and it all looks fine.


    Ganzuelo
    Participant

    @ganzuelo

    @mercime it’s not fixed. If you click on foxtrottango.net/members/ganzuelo you’ll see the issue


    @mercime
    Participant

    @mercime

    @ganzuelo Again, I don’t see any gap 🙂 Please clear your browser cache and/other any cache you have activated for your site.


    Ganzuelo
    Participant

    @ganzuelo

    Thanks for your help… If you could please try scrolling dowb


    danbp
    Participant

    @danbp

    @ganzuelo

    scrolling down the member page provides a funny elastic effect ! 😉 Really cool, but not what you want of course.
    I disabled js on the browser and the effect disapeared immediatly.
    So i think there is a js conflict, probably with some of your theme’s script.
    check for the elements
    `<div class=”col span_3>
    <a>
    <img alt=”Foxtrot Tango” /> `

    You mention salient to be your theme but the source code indicates castle ? Did you rename it for a child theme usage ?
    Some script don’t support this…

    You use also a plugin to remove the admin bar.

    <!--Plugin Global Hide Admin Tool Bar 1.6.1 Build 2014-04-16 Active --->
    <!-- This website is patched against a big problem not solved from WordPress 3.3+ to date -->

    Huh ?

    Don’t know if the second comment belongs to that plugin, but if yes, WP is currently in 4.0 phase, so a 3.3 “problem” maybe solved.
    Google to find a simplier solution to remove the toolbar. There is also a easy and light solution in on the WP codex.

    add_filter('show_admin_bar', '__return_false'); in theme’s function or bp-custom.php would do the job on front-end !

    Don’t use a hammer to kill a fly ! 😉


    Ganzuelo
    Participant

    @ganzuelo

    @danbp I tried the add_filter and it worked but I had the spacing issue.

    As far as the theme being renamed. I do it out of practice..


    @mercime
    I killed wiped my cache and went on my way. It cleared up the issue real quick however its back..


    Ganzuelo
    Participant

    @ganzuelo

    I just figured out that if you are logged in.. you will see it.. if you are not then its doesnt show..


    Ganzuelo
    Participant

    @ganzuelo

    @mercime The issue is only present for users that are logged in.


    danbp
    Participant

    @danbp

    Weird !
    Try to add this to the ‘body’ CSS in your (child)theme style.css:

    padding-top: 0 !important; /* Remove the top padding space for the admin bar */

    Even if this solution has absolutely nothing to do with logged in users….

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Padding Issue after Admin Bar Removal’ is closed to new replies.
Skip to toolbar