Forum Replies Created
-
Oh, sorry, please close this ticket. My activation siteoption from buddypress was linked to my frontpage. That was the problem.
Best regards
PareHi,
you can test this within your themes function.php:
add_action( 'bp_profile_header_meta', 'bp_info_viewer' ); function bp_info_viewer() { if (function_exists('bp_displayed_user_id')) { $user = new WP_User( bp_displayed_user_id() ); echo '<span class="user-loginname">'; echo $user->user_login; echo '</span>'; } }
within your css you can style
.user-loginname { ... }
Hope this help
Hi Shanebp,
thank you very much. Thats what I need.
Wish you nice holidays.
Regards
pareI’ve edited the code:
function my_setup_nav() { global $bp; bp_core_new_nav_item( array( 'name' => __( 'My Page', 'buddypress' ), 'slug' => 'my-page', 'position' => 70, 'screen_function' => 'my_page_template' ) ); } add_action( 'bp_setup_nav', 'my_setup_nav' ); function my_page_template() { bp_core_load_template( 'my-page-template.php' ); }
Where I have to safe the “my-page-template.php”? I use a wordpress childtheme with included folder buddypress. Do I have to write some special informations within the my-page-template.php or is it enough to insert the shortcode?
actually the link from profile menu “my page” links to members overview page what not should be. it should linked to the my-page-template.php.
thanks
If you use standard buddypress css, you have nothing to do. but if you have create an folder buddypress/css/buddypress.css within your childtheme folder, you have to define some css styles.
Best
PareHi Guys,
I’ve found an solution.
For childthemes you have to check the following infos:
Here is what I have paste to my child themes functions.php, and now the cover image works:
function your_theme_cover_image_css( $settings = array() ) { /** * If you are using a child theme, use bp-child-css * as the theme handel */ $theme_handle = 'bp-child-css'; $settings['theme_handle'] = $theme_handle; /** * Then you'll probably also need to use your own callback function * @see the previous snippet */ $settings['callback'] = 'bp_legacy_theme_cover_image'; return $settings; } add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'your_theme_cover_image_css', 10, 1 ); add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'your_theme_cover_image_css', 10, 1 );
Hi danbp,
Thanks for your reply.
Worked fine on all Themes, with all my other plugins. Only if I choose the child theme of my Plugin, the cover photo is not shown. If I change to an other theme, the cover photo is shown. Do I switch back to my child theme, the cover photo as away.Do I have to do somethin for childthemes? user picture woks, only Cover image has this prob.
Thanks and regards
PatrickHi Guys,
same Problem on my site? I use wordpress and buddypress latest Versions and latest Version of generatepress theme. I Use my Theme as Childtheme and only on Child-theme the porblem is there. On parent theme all is fine.
Is there an Info to this Point?
Thanks and regards
Patrick