-
Author
Tagged: header remove
-
June 18, 2015 at 05:26 #63601Webmaster4youParticipant
Hi 🙂
If I remove this line from the home.php file
<?php get_template_part(‘page-parts/buddypress-profile-header’);?>I get rid of the header on all pages but I want to only remove it on specific pages like the messages page and the edit my profile page what can I do?
any ideas?
Best regards
MichaelJune 19, 2015 at 15:59 #63873RaduModeratorHi,
Add this file ( header.php ) to your kleo child root directory.
Then in contact ,blog and member profile page the header will by hidden.
You can add or remove pages from line 69.
Example
COPY CODE<?php if (is_page (array( 'contact', 'blog' )) || bp_is_my_profile() ) {
COPY CODE<?php if (is_page (array( 'contact', 'another-page-slug' )) || bp_is_my_profile() ) {
Something like that,
Hope it's ok for you
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.June 20, 2015 at 01:26 #64011Webmaster4youParticipantHi Radu 🙂
Yes, that does work and thank you.The only thing is it removes the theme header and not the page-parts/buddypress-profile-header. The header I need to remove on certain pages is the one showing profile data.
<?php get_template_part(‘page-parts/buddypress-profile-header’);?>
Located in home.php in the folder wp-content/themes/sweetdate/members/single
it is the script buddypress-profile-header.php
located in the folder /page-partsIs ther somewhere else I can add this code
<?php if (is_page (array( ‘messages’, ‘profile’ )) || bp_is_my_profile() ) {
} else { ?>
to exclude the buddypress-profile-header
Best regards
/MichaelJune 22, 2015 at 17:23 #64272RaduModeratorReplace that file wp-content/themes/sweetdate/members/single/home.php with attached file.
It should be your solution.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.June 22, 2015 at 17:26 #64274RaduModeratorOr use sweetdate-child by placing the file in the next path : wp-content/themes/sweetdate-child/members/single/home.php
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJuly 5, 2015 at 20:59 #66689samnoonanParticipantHi, I am using the above code and it works on most pages, but I’ve got 2 it won’t work on and I also want the header on the actual profile. It won’t work on the locaation, or settings pages. Thank you
July 22, 2015 at 18:26 #69483RaduModeratorHi,
Sorry, but to achieve this, a few more tweaks will be required and i recommend you to hire a developer for this.
This isn’t an option either from buddypress or our theme.Thank you for understanding.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.