is_home() retunrs true for wp_signup.php (15 posts)

  1. Koff
    Posted 4 years ago #

    When addressing file like:

    the function is_home() and therefor is_front_page() returns true.
    Although this is clearly not the case.

    Is this a BUG?

    The problem starts here:

    if ( !( $this->is_singular || $this->is_archive || $this->is_search || $this->is_feed || $this->is_trackback || $this->is_404 || $this->is_admin || $this->is_comments_popup || $this->is_robots ) )
    			$this->is_home = true;
  2. It's running an 'If NOT any of these... THEN treat as is_home.' Why do you think it's a bug? What isn't happening that you expect to happen?

  3. Koff
    Posted 4 years ago #

    I met this issue when trying to make wp_signup.php to look like inner page.

    It took some time to get to that because is_home() is true, the body class includes home and therefore looks like home while I expected it to look like inner page.

    The other problem I see with this is that by the codex:

    This Conditional Tag checks if the main page is being displayed

    And one may use this in a plugin thinking he is hacking the main page, while hacking other pages as well.

  4. Ah, okay :) The signup page is intended to act as the outer page on a multisite, since you're signing up as a part of the network

    Read http://wpmututorials.com/plugins/style-your-signup-page though...

    Are you trying to style signups per site, or just for the network?

    (Also moving this to MultiSite for better localized traction)

  5. Koff
    Posted 4 years ago #


    I encountered this with MultiSite signup.
    And this Almost solve network signup, Its till needs a tweak for RTL.
    And There comes the same problem for wp_activate.php And maybe some more ( I didnt check)

    This dose't look like the "right" solution to me.

    What about plugins that uses is_home() or is_front_page() ?

  6. I get that it's multisite signup, I'm asking if you're trying to style the pages for signups per SITE or for the network as a whole :)

  7. Koff
    Posted 4 years ago #


  8. By default, those pages will grab the design from your main site. Is THAT theme using RTL?

  9. By default, those pages will grab the design from your main site. Is THAT theme using RTL?

  10. Koff
    Posted 4 years ago #

    Design from the main sites homepage as in oppose to inner page.

    And yes RTL is used.

  11. What do you mean by 'inner page'? The main site is whatever theme you have at domain.com - Inner pages (i.e. pages from your main site) are still using that theme. SUB SITES may not be.

  12. Koff
    Posted 4 years ago #

    I mean inner page of the main site. (index.php)
    as in oppose to homepage of the main site (home.php)

  13. You're talking theme file names and not front end post/page names.


    Again, the INNER page of your site is still a part of the THEME you're using for that site. That does NOT change, unless you did something to make your home.php or front-page.php vastly different.

  14. Koff
    Posted 4 years ago #


    Something like different background.

    The header is Dark blue.
    And The page is white

    while the homepage is Dark blue.

    Then the signup page is surprisingly Dark blue because is_home = true

  15. Okay so Read http://wpmututorials.com/plugins/style-your-signup-page

    You can you that to restyle it.

Topic Closed

This topic has been closed to new replies.

About this Topic