helmutforren (@helmutforren)

Forum Replies Created

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

  • helmutforren
    Participant

    @helmutforren

    Thanks, demonboy. I just changed that image to gray and got what I want.

    BTW, I realized last night that I posted this non-bbPress-related question to a bbPress-related forum. Sorry about that. Nevertheless, thanks for the solution.

    I use Chrome and viewed the source. I’ll look into Chrome Inspector. After a quick google I find it’s just the “inspect element” context menu option. Did it. Opened up detail. Noticed attributes or whatever on right panel of element highlighted in left panel. Couldn’t find header_bg.png as confirmation. Hunted around through detail by moving highlight. Finally found header_bt.png when highlighting “header” begin or end tag. That’s enough usability that I can work with this tool in the future. Thanks. It sure beats the very old way I used to debug html tables by adding a few colored borders and editing those around to isolate the offending table cell! Haven’t done much CSS at all, yet. The class-driven div’s in this header (and probably most) are the new (current) way to do the same thing as used to be done with tables. This inspector can also help me learn more CSS, from the inside out!


    helmutforren
    Participant

    @helmutforren

    I had the same kind of problem, but with a different version of the functions.php file. Robin pointed out this post, and it worked after I adapted it slightly for my version. See my fix, which “zooms in” on the code a little further to more clearly point out the change, at https://bbpress.org/forums/topic/forum-still-not-working-right/#post-146790


    helmutforren
    Participant

    @helmutforren

    Robin, your advice worked, once properly adapted. Thanks very much.

    For others, here’s how you get to the place to edit functions.php. From the Dashboard, select Appearance then Editor. Notice list of files on the RIGHT column. Find “Theme Functions (functions.php)” and click on that. Now you’ll be editing the correct file.

    For my version of Academica 1.2.2, there was only one occurrence of text “is_single”, and that was the right place.

    OLD SINGLE LINE OF CODE NEEDING CHANGE (see later for more lines to get context):

    
            echo get_category_parents( $cat, true, $sep ) . $before . get_the_title() . $after;
    

    NEW SIX LINES REPLACING LINE ABOVE (see later for more lines to get context):

    
            //support bbPress.  HgF per adaptation of akkkarki
            if (empty($cat)) {
                echo $before . get_the_title() . $after;
            } else {
                echo get_category_parents( $cat, true, $sep ) . $before . get_the_title() . $after;
            }
    

    OLD CODE (MORE LINES FOR CONTEXT):

    
    } elseif ( is_single() ) {
        if ( is_attachment() ) {
            global $post;
            echo 'post_parent ) . '">' . get_the_title( $post->post_parent ) . '' . $sep . $before . get_the_title() . $after;
        } else {
            $cat = get_the_category(); $cat = $cat[0];
            echo get_category_parents( $cat, true, $sep ) . $before . get_the_title() . $after;
        }
    

    NEW CODE (MORE LINES FOR CONTEXT):

    
    } elseif ( is_single() ) {
        if ( is_attachment() ) {
            global $post;
            echo 'post_parent ) . '">' . get_the_title( $post->post_parent ) . '' . $sep . $before . get_the_title() . $after;
        } else {
            $cat = get_the_category(); $cat = $cat[0];
            //support bbPress.  HgF per adaptation of akkkarki
            if (empty($cat)) {
                echo $before . get_the_title() . $after;
            } else {
                echo get_category_parents( $cat, true, $sep ) . $before . get_the_title() . $after;
            }
        }
    
Viewing 3 replies - 1 through 3 (of 3 total)