Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can i remove the header,search and my home,activity,forum etc from registration page.os there any plugin to modify registration page.I am using buddypress plugin.I do not want to call color.css for my registration page.

share|improve this question

closed as off-topic by ialocin, kaiser Aug 4 at 14:31

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

    
What theme are you using? –  bungeshea_ Dec 24 '12 at 3:03
    
    
Is not including color.css all you want to do? –  bungeshea_ Dec 24 '12 at 3:46
    
yes @bungeshea i do not want to include color.css in registration page.Is there any simple way? –  user1916876 Dec 25 '12 at 19:49
    
See my answer below to remove color.css from registration page. –  bungeshea_ Dec 26 '12 at 3:08

2 Answers 2

The theme you are using is a child theme of Buddypress default theme. You can override any file in the default theme by copying that file from the default theme directory (wp-content/plugins/buddypress/bp-themes/bp-default/) to your child theme directory (wp-content/themes/child-theme/) and placing it in the same sub-folder relative to bp-default.

In your case, first you need to copy register.php file located in buddypress/bp-themes/bp-default/registration/ sub-folder to your child theme (themes/frisco-for-buddypress/registration/register.php).

Next to remove the header elements of this template, create a new custom header file in your theme root directory and call it for example header-register.php. Copy the content of the header.php to the new file and remove the elements that you want to remove (the search <form> and the wp_nav_menu elements), and save the file.

Now open the register.php file that you just copied, and change the get_header('buddypress') at the top of the file to get_header('register'). This way you theme will use your custom header for the registration page.

share|improve this answer
    
There is no folder of registration in frisco for buddypress –  user1916876 Dec 25 '12 at 19:55
    
@user1916876: You need to create one. –  Ahmad M Dec 25 '12 at 21:19
    
oh man! I just did it.thanxx a ton.it was very helpful.thanxx again :) –  user1916876 Dec 25 '12 at 22:54
    
I am facing same problem for my homepage also.I have installed wordpress in www.mysite.com/user now the problem is that anybody can access the same thing which was my previous problem.my login page is at www.mysite.com/user/wp-login.php but if anyone enters in www.mysite.com/user he will be able to see all the stuff.how can i edit this?i just want to hide everything from www.mysite.com/user ? this is my /user page awesomescreenshot.com/004r2uj47 –  user1916876 Dec 27 '12 at 18:33

If you don't mind editing your themes files, you can remove color.css from the registration page by editing the functions.php file and change line 127 from:

wp_enqueue_style( 'frisco-color-css');

to:

if ( ! is_page( 'register' ) ) wp_enqueue_style( 'frisco-color-css');

Otherwise you can include a function in a plugin or similar:

add_action( 'init', function() {
    if ( is_page( 'register' ) )
        wp_dequeue_style( 'frisco-color-css' );
});

You will need to change register to the name, slug or ID of your registration page.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.