Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to remove header background image?


  • imjscn
    Participant

    @imjscn

    I don’t want the header background image, so I added this line:
    #header{background-image:none }
    It down’t work, the background image still show up. How can I totally remove it?

Viewing 8 replies - 1 through 8 (of 8 total)
  • A little more info please.

    Assuming you are using the bp-default theme?

    The header image is manageable from the dashboard by the user thus the styles are added to the doc head (embedded styles) these would overrule the rules you create in a linked stylesheet, that’s the first C in CSS ‘Cascading’.

    In your functions.php file add this line between php script tags:

    /* Disable default themes header stuff */
    define( ‘BP_DTHEME_DISABLE_CUSTOM_HEADER’, true );


    imjscn
    Participant

    @imjscn

    Basically, I’m using default theme though I’m editing some styles by using Child theme method.
    I don’t want to use any image on the header. I want to use background color only.

    If I don’t write anything about the background-image in Child theme, it will Inherit the parent theme’s header background-image settings by default. so, I need to overwrite this. How?

    Just showed you how!


    imjscn
    Participant

    @imjscn

    Thanks, that works!


    dcmediadesign
    Member

    @dcmediadesign

    Where in the functions.php do I put this line?


    @mercime
    Keymaster

    @mercime

    you can put that right under the opening `<?php` tag

    If you’re running BuddyPress 1.5+, go to Appearance > Custom Header in wp-admin, and I’m pretty sure there’s a “remove” button


    dcmediadesign
    Member

    @dcmediadesign

    I’ve tried to put that line:

    /* Disable default themes header stuff */
    define( ‘BP_DTHEME_DISABLE_CUSTOM_HEADER’, true );

    Right underneath the php tag, and it didn’t work, so I tried to add it into my code in the functions.php elsewhere, and it didn’t work again :/

    BP 1.5 Doesn’t have a “custom header” option, and if you do “remove” it, it resets to default which is a terrible blue gradient image…

    it also doesn’t allow for .png files, so you can’t add a clear image…help?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to remove header background image?’ is closed to new replies.
Skip to toolbar