Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to remove the freshness column

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

  • Robin W
    Moderator

    @robin-w

    hmm

    you’ll need to alter several files, so general first

    altering bbpress templates

    You can copy all the templates across, but you only need to copy those that you want to change, and it is better just to do this, as then you know which you have altered.

    so if you wanted to amend loop-single-forum you would do the following

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-single-forum.php
    bbPress will now use this template instead of the original
    and you can amend this

    files

    There may be others, but

    loop-forums (forum headings)
    loop-single forum (forum content)
    loop-topics (single forum heading)
    loop-single-topic (single forum content)

    will get you most of the way there


    mbanovastore
    Participant

    @mbanovastore

    Hi,

    Thank you very much for answering!
    I have created the folder and copied the file. But i’m very new to php, and are not sure what to do next… Do I just have to delete the freshness-column sections in the php? Or won’t that work?


    mbanovastore
    Participant

    @mbanovastore


    Robin W
    Moderator

    @robin-w

    I have seen this, and will respond, but I need to do paid work first. I am only a volunteer on here.


    Robin W
    Moderator

    @robin-w

    so from forums loop remove

    <li class="bbp-forum-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li>
    

    and from loop single forum remove

    <li class="bbp-forum-freshness">
    
    		<?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>
    
    		<?php bbp_forum_freshness_link(); ?>
    
    		<?php do_action( 'bbp_theme_after_forum_freshness_link' ); ?>
    
    		<p class="bbp-topic-meta">
    
    			<?php do_action( 'bbp_theme_before_topic_author' ); ?>
    
    			<span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 14 ) ); ?></span>
    
    			<?php do_action( 'bbp_theme_after_topic_author' ); ?>
    
    		</p>
    	</li>

    I’ll let you work out the topics


    mbanovastore
    Participant

    @mbanovastore

    It worked perfectly thank you so much!


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed

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