Skip to:
Content
Pages
Categories
Search
Top
Bottom

HELP!

  • @seo45

    Participant

    Hello everyone. I’m freaking out right now. I just added this code to my functions.php:

    add_post_type_support(‘forum’, array(‘thumbnail’));

    function ks_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 forum-icon’));
    }
    }
    add_action(‘bbp_theme_before_forum_title’,’ks_forum_icons’);

    It was supposed to allow me to add a featured image to forums and it would act as a icon to the left of it. The problem is that when I added a featured image, it screwed everything up. I’ve taken the image off and deleted the code and it’s still all messed up. If you have any clue, please help!

    Here is the site: evrgaming.com

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

    Moderator

    I presume you’ve refreshed your browser, as if you have removed as you said it should be back to normal

    @robkk

    Moderator

    @seo45

    yeah i see it looks fine now, maybe your theme is so customized for bbPress that maybe the function wont work. contact theme author and see if they can help you.

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