Skip to:
Content
Pages
Categories
Search
Top
Bottom

breadcrumbs + shortcode

  • @nirzol1

    Member

    hello

    shortcode is good.

    But how can I remove breadcrumbs plz ?

    Because I use two shortcode :

    [bbp-forum-index]

    [bbp-topic-index]

    And I have breadcrumbs for forum and an other for topic. Maybe make a shortcode like this is it possible ?

    [bbp-topic-index breadcrumbs=false]

    And are they a way to say number topics to display ?

    thx for help ! :)

Viewing 2 replies - 1 through 2 (of 2 total)
  • @nirzol1

    Member

    Ok

    I find something but I don’t know if is good to do like that .

    In function.php add this :

    add_action(‘wp_enqueue_scripts’, ‘add_my_stylesheet’);

    function add_my_stylesheet() {

    $myStyleFile = get_theme_root_uri() . ‘/myTheme/mybbpress.css’;

    if ( (is_post_type_archive( ‘forum’ )) ) {

    wp_enqueue_style( ‘myStyleSheetsi’, $myStyleFile);

    }

    }

    Create a file in your theme mybbpress.css :

    div.bbp-breadcrumb, h1.title{

    display:none;

    }

    Just to notice, all changes is for first page forum only(http://mysite.com/forums) if you want to make changes on all your forums pages replace

    if ( (is_post_type_archive( ‘forum’ )) ) {

    by

    if ( (is_post_type_archive( ‘forum’ ) || is_singular( array( ‘forum’, ‘topic’, ‘reply’ ) )) ) {

    I tried is_page_template(‘bbpress.php’) or is_page(35) etc… (a lot I tried :p)

    but don’t work.

    @soumitradbrandmantranet

    Member

    pagination is not working for topic list in archive forum page. but it is working in particular forum page.

    link is here

    http://mydemozone.com/vividmagazine/web/?post_type=forum

    when I click on 2 then it shows page not found.

    how will I set pagination for topic list in archive-forum.php page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar