Skip to:
Content
Pages
Categories
Search
Top
Bottom

create a child theme/change style


  • talitaco
    Participant

    @talitaco

    latest version of wordpress
    buddypress 1.7

    so i’ve opened a folder in themes named it “silver” added new file style.css and copied the following
    /*
    Theme Name: silver
    template: bp-default
    Author: tali
    Description:lets start
    Version: 1.0
    Tags: buddypress, two-column, grey, dark

    */
    /* Inherit the default theme styles */
    @import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );
    /* Inherit the default theme adminbar styles */
    @import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/adminbar.css );

    body{
    background-color:red;
    }

    the silver theme was activated but the body color did’nt change:(

    after reading all the similar threads on this subject i added a file functions.php
    and the code is:
    if ( !function_exists( 'bp_dtheme_enqueue_styles' ) ) :
    function bp_dtheme_enqueue_styles() {
    // Bump this when changes are made to bust cache
    $version = '1.0';
    // Register our main stylesheet
    wp_register_style( 'silver', get_stylesheet_directory_uri() . '/style.css', array(), $version );
    // Enqueue our main stylesheet
    wp_enqueue_style( 'silver' );
    }
    add_action( 'wp_print_styles', 'bp_dtheme_enqueue_styles' );
    endif;

    still nothing:(
    what am i doing wrong?
    how to change styles?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘create a child theme/change style’ is closed to new replies.
Skip to toolbar