Template modification not shown on website
-
Hello there, I have been trying and researching about this for over a week and haven’t been able to figure it out. Any help is much appreciated.
So here is the problem: Any changes that I make to the template files are not mirrored on the site.
What have I have already tried? I hope I have done all the basics correctly.
1. I have a child theme.
2. I have copied the files from: plugins/buddypress/bp-templates/bp-legacy/buddypress… into my child theme. (so my file structure looks like childtheme/buddypress/members/….(everything inside).
3. I am able to style the profile pages using CSS (I add them in my child theme stylesheet.css)What I am not able to do: Any changes I make to the template files are not visible on the website. Let me give an example.
Say I wanted to remove my name (@ajitjohnson) from the profile page.
I locate the header php file, so that is now located at childtheme/buddypress/members/single/member-header.php
Now I remove the following lines,
<?php if ( bp_is_active( ‘activity’ ) && bp_activity_do_mentions() ) : ?>
<h2 class=”user-nicename”>@<?php bp_displayed_user_mentionname(); ?></h2>
<?php endif; ?>I would imagine it should remove my name from the profile page but it doesn’t. May be something else is overriding it?
I have also tried editing the core template files without adding them to the child theme. It still doesn’t work.
Please help. Thank you.
Ps: WordPress version 4.8.1, buddypress version: 2.9, theme: _tk (basic bootstrap theme that I have customised)
- You must be logged in to reply to this topic.