Info
- 4 posts
- 2 voices
- Started 3 years ago by csseur3
- Latest reply from chrishajer
- This topic is resolved
stylesheet_directory
-
- Posted 3 years ago #
Hello,
what is the function for have the theme directory in bbpress, like <?php bloginfo('stylesheet_directory'); ?> for wordpress ?
Bye
-
- Posted 3 years ago #
From header.php
<link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?>" type="text/css" /> <?php if ( 'rtl' == bb_get_option( 'text_direction' ) ) : ?> <link rel="stylesheet" href="<?php bb_stylesheet_uri( 'rtl' ); ?>" type="text/css" />bb_stylesheet_uri();
-
- Posted 3 years ago #
yes, yes. But i have a other css in my bb-templates/tpl1/css/enplus.css
how to add this? i want that it works even if i rename my theme, or if i share it.
<link rel="stylesheet" href="<?php bb_stylesheet_uri( 'css/enplus.css' ); ?>" type="text/css" />
doesn't work.
-
- Posted 3 years ago #
Well, that function gives the URI of the stylesheet, which will be a file, not a directory (sorry). Try this instead:
<link rel="stylesheet" href="<?php bb_active_theme_uri(); ?>css/enplus.css" type="text/css" />You had some other errors in there too, in addition to the wrong function I gave you.
There's lots of neat stuff in bb-includes/template-functions.php - take a look.
-
You must log in to post.