BuddyBoss Home – Web Support Forums Themes BuddyBoss theme HTML is showing up in my footer.php file in the latest download

Viewing 6 posts - 1 through 6 (of 6 total)
  • Question

    #37038
    @interglobalmedia

    Hi,

    HTML is showing up in the latest download of the buddyboss theme, and specifically I checked the footer.php. Perhaps there is other stuff hidden in other files as well. Thanks!

    Answers

    #37043
    @interglobalmedia

    I see now that you have HTML within the coding now with all files along with the PHP. However, I noticed that with the footer.php, the code is wrong. This is how it begins:

    ?>
    </div><!– #main .wrapper –>
    </div><!– #page –>

    <footer id=”colophon” role=”contentinfo”>

    There must be something missing somewhere else that the two closed divs appear at the top. Is this new mixing the HTML in with the PHP? I just never saw this before.

    And by the way, this is the downloaded file that is NOT on my website. It’s the original code. Thanks!

    Maria

    #37056

    Alyssa
    Participant
    @alyssa-buddyboss

    @interglobalmedia this is correct. The code has always been like that. See BuddyPress codex here: https://codex.buddypress.org/legacy/theme-development/the-bp-default-theme/

    #37067
    @interglobalmedia

    ok! maybe I just forgot. However, what is strange, is that I am using the WP Editor, and that’s what drew my attention to this issue. From the unchanged footer.php file, it highlighted what it thought was incorrect code, in red. That’s what brought about this discussion on my part. And I know that you guys recommend using the WP Editor.

    #37074
    @interglobalmedia

    Hi @tjchester,

    I found this on the Buddypress forum off the codex, and this developer discusses exactly what I came across in my footer.php:

    “I’ve developed my own theme, I just copied the files provided into my own theme, then added a simple div tag in header-buddypress and closed in footer-buddypress to encapsulate it inside my existing css blocks

    if I don’t create these two files buddypress will look funny”

    I went into the actual Buddypress files to see if there was any HTML in the .php files. There is not. Only straight php.

    My site looks fine, but when I remove the divs from the footer as the WP Editor indicates to do, it screws things up and the site looks funny, especially in the footer area!

    Buddypress guys are weird, and Buddyboss is the only theme I know that doesn’t look funny with Buddypress. Just sharing this because I have started using the WP Editor, and then I also noticed this in the downloaded (unchanged) files on my desktop. Don’t remember seeing (so much) HTML in Buddyboss files before. The code was the same when I updated on the website. It just makes for making adjustments very complicated, if there is more than just basic changes one wants to make using a child theme because of the HTML embed that exists in the theme files. But I do understand now why it exists.

    Maria

    #37086

    Alyssa
    Participant
    @alyssa-buddyboss

    Guess there is always something to learn.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The question ‘HTML is showing up in my footer.php file in the latest download’ is closed to new replies.