Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity Feed Banner


  • kevinrook
    Participant

    @kevinrook

    Hi.

    Pretty new to Buddy Press.

    i would like to be able to add a Banner to the top of our Activity Feed page /activity so that all users see this at the top.

    to promote events etc.

    i see adding images to the page it self dosnt work but im not sure how to get this to work,

    Many thanks in advance.

    Kevin

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

  • shanebp
    Moderator

    @shanebp

    Did you look at the activity-loop template?
    Have you tried using the hook for adding content at the top?

    The hook is bp_before_activity_loop

    For example:

    function add_banner() { 
        echo 'this will be a banner';
    }
    add_action( 'bp_before_activity_loop', 'add_banner' );

    Or you could place it higher on the page by using this hook: bp_before_directory_activity


    kevinrook
    Participant

    @kevinrook

    i will give this a go ^ many thanks


    kevinrook
    Participant

    @kevinrook

    i was able to get your first example to work

    function add_banner() {
    echo ‘this will be a banner’;
    }
    add_action( ‘bp_before_activity_loop’, ‘add_banner’ );

    when i replaced activity_loop for directory_activity it didnt seem to do anything.

    sorry for the newbie questions & thank you for your help so far

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