Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disabling bpdefault CSS

  • @bollocks187

    Member

    Hi
    Using a child theme based on bp_Default.

    I use the recommended additions to my themes function file to disable the bp_default CSS so I can use me own CSS files. This is recommended you place in the theme function file:

    if ( !function_exists( ‘bp_dtheme_enqueue_styles’ ) ) :
    function bp_dtheme_enqueue_styles() {}
    endif;

    Unfortunately this also stops my theme from importing my own styles CSS files. So there is none of my CSS files associated with the HTML pages.

    Can someone help as to why this is happening – thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @mercime

    Participant

    BP/WP versions? Methods are different for BP 1.5/1.5.1 (WP 3.2.1) and BP 1.5.2 (WP 3.3).

    @modemlooper

    Moderator

    Use a function to add your style

    `function addCSS() {
    wp_enqueue_style( ‘style’, get_stylesheet_directory_uri() . ‘/css/style.css’, false, ‘1.0’, ‘all’ );
    }
    add_action(‘wp_head’, ‘addCSS’);`

    @mercime

    Participant

    Or, keep that function in your functions.php file, copy over header.php from bp-default into your child theme folder, and add the link to stylesheet to header.php:
    `<link rel="stylesheet" href="” type=”text/css” media=”screen” />`
    between

    and
    `<link rel="pingback" href="” />`

    @bollocks187

    Member

    Thanks for the quick reply for everyone. I will go for importing in the header.php

    Why “embed” any of the styling in the PHP files. This does not appear to me to be a good programming methodology.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disabling bpdefault CSS’ is closed to new replies.
Skip to toolbar