yanseo (@yanseo)

Forum Replies Created

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

  • yanseo
    Participant

    @yanseo

    Add the following code to your functions.php

    
    function forum_icons() {
    	if ( 'forum' == get_post_type() ) {
    		global $post;
    	    if ( has_post_thumbnail($post->ID) )
    	    	echo get_the_post_thumbnail($post->ID,'thumbnail',array('class' => 'alignleft'));
    	 }
    }
    add_action('bbp_theme_before_forum_title','forum_icons');
    

    Hope it helps 😉


    yanseo
    Participant

    @yanseo

    +1 for this as I’m also trying to remove the avatar from the same line which I know how but editing the core file isn’t advisable.

    Have you found the right way to do it via function that will overwrite the bbpress template-tag function?

    Thanks!

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