Tagged: x
-
AuthorPosts
-
December 25, 2016 at 12:33 pm #1304038
khomikoParticipantIs there a way to echo an id with php into the header above all of the content? I would like the item-header in this image to appear above all the content if a user is logged in. Please and thank you ๐
December 25, 2016 at 12:35 pm #1304039
khomikoParticipanthttp://tinypic.com/view.php?pic=2vdi33t&s=9
Image was too big, so I uploaded it to tinypic
December 25, 2016 at 2:15 pm #1304062
khomikoParticipantI think <?php do_action( ‘bp_before_member_header’ ); ?> needs to be added to the integrity content/sidebar template. I don’t know exactly how to do that though. When I do it, it only shows on the profile page, but doesn’t take on the css that is on the profile page.
December 25, 2016 at 7:14 pm #1304233
Rue NelModeratorHello There,
Thanks for writing in! You can add a custom function in your child theme and inject the custom image when a user is logged in. Assuming that your child theme is set up, please add the following code in your child themeโs functions.php file
// Add Custom Image Header when a user is logged in // ============================================================================= function add_image_header(){ ?> if ( is_user_logged_in() ) { do_action( 'bp_before_member_header' ); } } add_action( 'x_after_view_integrity__landmark-header', 'add_image_header' ); // =============================================================================Hope this helps.
December 25, 2016 at 9:22 pm #1304268
khomikoParticipantIt gave me a syntax error.
December 25, 2016 at 9:33 pm #1304273
DarshanaModeratorHi there,
Sorry for the inconvenience caused. Please update your code as follows.
// Add Custom Image Header when a user is logged in // ============================================================================= function add_image_header(){ if ( is_user_logged_in() ) { do_action( 'bp_before_member_header' ); } } add_action( 'x_after_view_integrity__landmark-header', 'add_image_header' ); // =============================================================================Hope that helps.
December 25, 2016 at 10:23 pm #1304279
khomikoParticipantNo inconvenience here ๐ Two problems though.
1) It only shows on the profile pages. Since I already have it here, I would rather it not show on these pages.
2) It doesn’t take on the same css properties as on the profile pages.
December 25, 2016 at 11:31 pm #1304298
Paul RModeratorHi,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
December 25, 2016 at 11:49 pm #1304317
khomikoParticipantThis reply has been marked as private.December 26, 2016 at 1:47 am #1304353
Paul RModeratorHi,
Kindly change the code to this.
// Add Custom Image Header when a user is logged in // ============================================================================= function add_image_header(){ if ( !x_is_bbpress() ) { do_action( 'bp_before_member_header' ); } } add_action( 'x_after_view_integrity__landmark-header', 'add_image_header' ); // =============================================================================Hope that helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1304038 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
