Forum Replies Created
-
Thanks @mercime, I’ve already been staring at that page for over an hour. I can’t figure out what I’m doing wrong. I’ve tried every variation of the code I can think to try. Seneca County is the name of my custom child theme. What am I missing? The Codex doesn’t really explain how to modify the example. If you’ve never done it before, I don’t know how you’d look at the example and just figure it out. Please help

`if ( !function_exists( ‘bp_dtheme_enqueue_styles’ ) ) :
function bp_dtheme_enqueue_styles() {
wp_enqueue_style( ‘seneca-county’, get_template_directory_uri() . ‘/themes/seneca-county/style.css’ );
}
endif;``if ( !function_exists( ‘bp_dtheme_enqueue_styles’ ) ) :
function bp_dtheme_enqueue_styles() {
wp_enqueue_style( ‘my-stylesheet’, WP_CONTENT_URL . ‘/themes/my-theme/style.css’ );
}
endif;`Thanks for replying @boonebgorges. I’ve enjoyed some of your talks via wordpress.tv. I wish that info was included in the Codex. At least a mention that just because my theme was activated doesn’t mean my stylesheet was automatically linked. Maybe that’s obvious to others? I dunno.
I changed the path to my theme “/themes/my-theme.style.css” but it still doesn’t seem to have worked. Do I need to change anything else in the code you provided? “my-stylesheet” for instance? I’m never worked with a child theme before. Thanks again.
Also, I wondered if I made a mistake in the header of my stylesheet. Do I need to have an absolute path to the stylesheet? My theme URI is currently written as “http://www.mydomain.com/wp-content/themes/theme-name”. Is this what is tripping me up? I assume not since the stylesheet was recognized prior to creating the functions.php file. I’m very confused.
`/*
Theme Name: BuddyPress Dusk
Theme URI: http://example.org/themes/dusk/
Description: Dark theme for BuddyPress.
Version: 1.0
Author: John Doe
Author URI: http://example.org/
Template: bp-default
Tags: buddypress, two-column, grey, dark
*/`