BuddyDev

Search

[Resolved] Registration page not coming in full width

  • Participant
    Level: Initiated
    Posts: 15
    nim on #9100

    Register page is not coming in full width page. although in wordpress, I opt option for full width page. I am using zeriflite theme and wordpress version 4.7.4.

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #9102

    Hi Nim,
    Welcome to BuddyDev.

    Thank you for asking it. It is a problem with BuddyPress.

    Here is a simple fix for register page

    
    
    /**
     * Force to use assigned Page template with BuddyPress Register page
     *
     * @param $template
     *
     * @return string found template
     */
    function buddydev_register_template_fix( $template ) {
    
    	if ( bp_is_register_page() ) {
    		$template_slug = get_page_template_slug( buddypress()->pages->register->id );
    
    		if ( $template_slug && ( $located = locate_template( array( $template_slug ), false ) ) ) {
    			$template = $located;
    		}
    	}
    
    	return $template;
    }
    add_filter( 'template_include', 'buddydev_register_template_fix', 100 );
    
    

    If you put it in your bp-custom.php or theme’s functions.php(may be child themes’). It will force WordPress to use assigned template for the register page.

    Hope that helps.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 15
    nim on #9113

    Hi Brajesh,

    Thank you for solve my problem. It worked.

    Previously I was using another plugin, that was not efficient actually. So I switched to buddypress. Buddypress is really fantastic tool.

    Regards

  • Participant
    Level: Initiated
    Posts: 15
    nim on #9116
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #9117

    Hi Nim,
    Please open a new topic with the new question.
    I am not sure about the pastebin code. I guess it was related to home page registration or something. Please open a new topic with more context.

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 15
    nim on #9124

    Hi Brajesh,
    Ok, posted in new forum.
    Thanks

The topic ‘ [Resolved] Registration page not coming in full width’ is closed to new replies.

This topic is: resolved