Skip to:
Content
Pages
Categories
Search
Top
Bottom

stylesheet_directory

  • Hello,

    what is the function for have the theme directory in bbpress, like <?php bloginfo(‘stylesheet_directory’); ?> for wordpress ?

    Bye

Viewing 3 replies - 1 through 3 (of 3 total)

  • chrishajer
    Participant

    @chrishajer

    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();

    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.


    chrishajer
    Participant

    @chrishajer

    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.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.