- This topic has 7 replies, 2 voices, and was last updated 10 years, 1 month ago by
Tom.
-
AuthorPosts
-
June 27, 2016 at 4:57 am #204839
Yomi
Hi Tom,
The “Page Header” Add-on seems not to be working with the buddypress activity, groups or members page anymore with the codes you have supplied on this page.
I have use the following codes inside the “After Header” hook, selected the php box, but all the contents display throughout the site in the “After header” position and not the specific pages where the content is supposed to appear
Below are the contents i placed in the after header hook
<?php if ( function_exists( ‘bp_is_active’ ) ) : ?>
<?php if ( bp_is_active( ‘activity’ ) ) { ?>
This is where you put what you want to show up in here (and delete this text).
For example, an image:
Or just regular text and HTML – it’s up to you.
Just make sure not to touch any of the surrounding markup 🙂
<?php } ?>
<?php endif; ?>Is this code still working or another code available
Kind regards
-
This topic was modified 10 years, 1 month ago by
Yomi.
-
This topic was modified 10 years, 1 month ago by
Yomi. Reason: missed out some bits
June 27, 2016 at 12:00 pm #204938Tom
Lead DeveloperLead DeveloperHi there,
Can you re-post the exact code you’re using, but highlight it and click the “code” button in the editor so it formats it nicely?
That would help me see what’s going wrong 🙂
June 27, 2016 at 12:52 pm #204945Yomi
The exact code I am using are as follows:
<?php if ( function_exists( 'bp_is_active' ) ) : ?> <?php if ( bp_is_active( 'activity' ) ) { ?> <div class="page-header-content generate-page-header generate-content-header"> <div class="inside-page-header-container inside-content-header grid-container grid-parent"> This is where you put what you want to show up in here (and delete this text). For example, an image: <img src="URL TO YOUR IMAGE" alt="" /> Or just regular text and HTML - it's up to you. Just make sure not to touch any of the surrounding markup :) </div> </div> <?php } ?> <?php endif; ?>June 27, 2016 at 11:16 pm #205010Tom
Lead DeveloperLead DeveloperWhich hook are you adding it to? Is “Execute PHP” checked?
The above should input content to the activity page in BuddyPress – I doubt their conditionals have changed.
June 27, 2016 at 11:22 pm #205013Yomi
Yes “Execute PHP” is checked.
June 27, 2016 at 11:35 pm #205016Tom
Lead DeveloperLead DeveloperIf nothing is showing, it means:
a) One of the conditionals isn’t correct (
function_exists( 'bp_is_active' )orbp_is_active( 'activity' )).
b) The hook you’re adding it into isn’t displaying on that page.June 28, 2016 at 10:19 am #205139Yomi
Okay… thanks for taking the time to look at the code.
Might have to check if it is a plugin conflict causing the problem
Kind regards
June 28, 2016 at 12:39 pm #205176Tom
Lead DeveloperLead DeveloperNo problem 🙂
-
This topic was modified 10 years, 1 month ago by
-
AuthorPosts
- You must be logged in to reply to this topic.