Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding a video on the register page

  • Avatar of tourdecartes
    tourdecartes
    Participant

    @tourdecartes

    Hello everybody!

    Im trying to add a video on the register page. I tried to look on how to do that for a long time already but I doesn’t seems as easy as I thought.
    Would anyone have an idea on how I could go with that?

    Any help would be greatly appreciated!

    Best regards,
    Emmanuel

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of grlove
    grlove
    Participant

    @grlove

    I’m trying too but nothing happend.

    Avatar of danbp
    danbp
    Participant

    @danbp

    Give this a try !

    function embed_my_register_video() {
    	echo wp_oembed_get( 'http://www.youtube.com/watch?v=dQw4w9WgXcQ', array( 
        'width'  => 600,
        'height' => 400
    	) );
    		
    }
    add_action( 'bp_before_register_page', 'embed_my_register_video' );

    Function reference
    File reference

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

You must be logged in to reply to this topic.