Skip to:
Content
Pages
Categories
Search
Top
Bottom

Place content from plug-in below the cover header and profile pic

  • @earl_d

    Participant

    I have a plug-in that generates Stories like web stories in BP. It integrates fine except it places the resulting stories about the cover image header. I would like it below because it just looks clunky above the header. The developer has offered the following code snippets to implement a different placement. But I am unsure as to where it would go. Any pointers or assistance would be appreciated.

    add_filter(
    'wpstory_bp_profile_displaying_hook',
    function () {
    // Default: bp_before_member_home_content
    return 'your_custom_hook';
    }
    );

    // For user single stories.
    echo do_shortcode( '[wpstory-user-single-stories]' );
    // For user public stories.
    echo do_shortcode( '[wpstory-user-public-stories]' );

Viewing 1 replies (of 1 total)
  • @thinlizzie

    Participant

    NOTE: this is not tested so please try it on a development site first, do not put it on your live site.

    Try this …

    
    add_filter(
    'wpstory_bp_profile_displaying_hook',
    function () {
    // Default: bp_before_member_home_content
    return 'bp_profile_header_meta';
    }
    );
    
    

    If it doesn’t work, then point me at your Stories plugin please.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar