Getting the URI of the stylesheet directory?
-
OK, I’m working on integrating my WordPress & bbPress themes. I’m doing the work in the bbPress theme files.
What I did was I copied the style.css from my WordPress theme into the new bbPress theme directory. Now I’m working on the header.php file, figuring the best place to start would be at the top of every page.
The navigation bar from my WordPress theme uses a javascript file which is included in the scripts/ folder under the directory where the theme lives.
I’m calling bb_get_active_theme_directory() to get the directory name, but this is not returning anything. The Appearance page in the admin console for bbPress is using the theme I’m editing, and viewing the page source shows the wrong value for the script file name.
A couple of lines earlier in the header.php file, it calls bb_stylesheet_uri() & that returns the full URI of the stylesheet. I want everything that’s in there minus the “style.css”. How do I get it?
Tony
- You must be logged in to reply to this topic.