Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

  • pare81
    Participant

    @pare81

    Oh, sorry, please close this ticket. My activation siteoption from buddypress was linked to my frontpage. That was the problem.

    Best regards
    Pare


    pare81
    Participant

    @pare81

    Hi,

    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


    pare81
    Participant

    @pare81

    Hi Shanebp,

    thank you very much. Thats what I need.

    Wish you nice holidays.

    Regards
    pare


    pare81
    Participant

    @pare81

    I’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


    pare81
    Participant

    @pare81

    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
    Pare


    pare81
    Participant

    @pare81

    Hi Guys,

    I’ve found an solution.

    For childthemes you have to check the following infos:

    BuddyPress Cover Images

    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 );

    pare81
    Participant

    @pare81

    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
    Patrick


    pare81
    Participant

    @pare81

    Hi 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

Viewing 8 replies - 1 through 8 (of 8 total)
Skip to toolbar