Support » Themes and Templates » How to change page template…

  • Hello,

    I’m using a purchased theme and when I go to my wp-signup.php page that page is using the home page template not the inner-page template. I know this is set by CSS that is found in the body tag but when I open wp-signup.php I don’t see a body tag. Can anyone please advise where I need to look to force that page to use the correct template? It looks stupid with the home page background graphic on it.

    I’m new to this level of WP use and looked in the forums but did not see this exact issue. Thanks in advance for your help.


Viewing 8 replies - 1 through 8 (of 8 total)
  • Got a link to the site? Hard for me to visualize and give an exact fix without it.

    That one threw me off for a minunte 🙂

    You have 2 background images. The one you want to use is


    so on default.css change

    #page {
    background:url("../images/background.jpg") repeat-x scroll 0 0 #FFFFFF;


    #page {
    background:url("../images/inner-background.jpg") repeat-x scroll 0 0 #FFFFFF;

    Then your title is going to have to move down also

    The correct template does this by adding a bunch of
    to move it down.

    Thanks. How will that change to the CSS affect my home page though, that needs the bigger background?

    The CSS looks like this:

    #page {
    	background:#fff url(../images/background.jpg) repeat-x;
    #inner-page {
    	background:#fff url(../images/inner-background.jpg) repeat-x;

    So it seems like I need to change the signup page body tag to inner-page but I don’t know where that is being set.

    You would have to create a new one.

    So on wp-signup.php

    You need to change the body tag to the right one.

    <body id="page">


    <body id="inner-page">

    THanks for your help. That’s just the problem though, there is no body tag on wp-signup.php There are a bunch of functions I don’t understand. I tried to track backwards and see where the body is set but can’t locate it.

    Here is the code from the top of wp-signup.php

    /** Sets up the WordPress Environment. */
    require( dirname(__FILE__) . '/wp-load.php' );
    add_action( 'wp_head', 'signuppageheaders' ) ;
    require( 'wp-blog-header.php' );
    require_once( ABSPATH . WPINC . '/registration.php' );
    if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {
    	wp_redirect( network_home_url() );
    function do_signup_header() {
    add_action( 'wp_head', 'do_signup_header' );
    function signuppageheaders() {
    	echo "<meta name='robots' content='noindex,nofollow' />\n";
    if ( !is_multisite() ) {
    	wp_redirect( get_option( 'siteurl' ) . "/wp-login.php?action=register" );
    if ( !is_main_site() ) {
    	wp_redirect( network_home_url( 'wp-signup.php' ) );
    // Fix for page title
    $wp_query->is_404 = false;
    function wpmu_signup_stylesheet() {
    	<style type="text/css">
    		.mu_register { width: 90%; margin:0 auto; }
    		.mu_register form { margin-top: 2em; }
    		.mu_register .error { font-weight:700; padding:10px; color:#333333; background:#FFEBE8; border:1px solid #CC0000; }
    		.mu_register input[type="submit"],
    			.mu_register #blog_title,
    			.mu_register #user_email,
    			.mu_register #blogname,
    			.mu_register #user_name { width:100%; font-size: 24px; margin:5px 0; }
    		.mu_register .prefix_address,
    			.mu_register .suffix_address {font-size: 18px;display:inline; }
    		.mu_register label { font-weight:700; font-size:15px; display:block; margin:10px 0; }
    		.mu_register label.checkbox { display:inline; }
    		.mu_register .mu_alert { font-weight:700; padding:10px; color:#333333; background:#ffffe0; border:1px solid #e6db55; }
    add_action( 'wp_head', 'wpmu_signup_stylesheet' );
    do_action( 'before_signup_form' );

    Looking in the header.php file I find this code:

    $mee_page_id = 'inner-page';
    $mee_inner_id ='';
    if (is_home()){ $mee_page_id = 'page'; }
    if (isset($mee_inner_id['custom']['inner-page'])) $mee_inner_id = $mee_option['custom']['inner-page'];
    <body id='<?php echo $mee_page_id; ?>' <?php echo $mee_inner_id; ?>>

    I’m not sure why the signup page is being seen by this code as is_home but that seems to be the issue. Any ideas where is_home would be set for that page?


    You got me.

    I don’t know what function to use to identify if it is on the signup page.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to change page template…’ is closed to new replies.