create a child theme/change style
-
latest version of wordpress
buddypress 1.7so 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?
- The topic ‘create a child theme/change style’ is closed to new replies.