Cannot Edit Theme Files
-
I have spend the past 2 days digging through the documentation with no luck.
Simple question, how do I edit the raw template files (the actual html) for the current version of BuddyPress (2.4.3)? Specifically, the public-facing profile pages.
So, I have a theme, let’s call it “mytheme”, and I copied the contents from /plugins/buddypress/bp-templates/bp-legacy/buddypress/ into /wp-content/themes/mytheme/buddypress/
First off, is that copying and overriding process still correct? I’ve read that in a few places but I don’t know if it is the current method. Also, if I only need to edit one file (/members/single/member-header.php for example), could I simply just copy that single file (along with the folder structure of course) and then customize it? Or do I need to copy all of the files and folders?
Secondly, for some reason, I can no longer edit the template files. It seems like no matter what I do, I cannot find or edit code.
I am trying to edit some code from /wp-content/themes/mytheme/buddypress/members/single/member-header.php and nothing I do affects the code.
For example, I am trying to edit this:
<h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2>
to
<h2 class="user-nicename">TESTING @<?php bp_displayed_user_mentionname(); ?></h2>
but nothing happens.
Strangely, I am able to make edits to /wp-content/themes/mytheme/buddypress/members/single/home.php
On line 41, I was able to comment out:
bp_get_displayed_user_nav();
Which actually had an effect on the page.
What could I be doing wrong here? I tried downloading a fresh copy and I’ve been trying to read about how to edit the theme files, there doesn’t seem to be much information about it. Why can I edit parts of /wp-content/themes/mytheme/buddypress/members/single/home.php and not /wp-content/themes/mytheme/buddypress/members/single/member-header.php ?
Any advice on this would be massively appreciated. 🙂 I really tried and searched for a long time before asking.
*I also wonder if this is related to what this user asked about: https://buddypress.org/support/topic/remove-or-hide-on-profile-in-front-of-username/
- The topic ‘Cannot Edit Theme Files’ is closed to new replies.