Add user shortcode

This topic contains 3 replies, has 2 voices, and was last updated by  Paolo 9 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #49568

    Stu
    Expired Member
    Post count: 16

    Hi,

    I have created an alternative page header specific to my homepage. This uses the following code: <?php if (is_page(‘Home’)) { include ‘headerhome.php’;} else { include ‘headernormal.php’;}
    ?>

    I am experiencing difficulty with the sign up / register pages. They automatically appear using my homepage header.

    I’ve been able to use the Login shortcode to create a dedicated login page with my normal header but I cannot find a similar shortcode for registering a new user.

    I only really want the homepage header to be used for my homepage.

    Is there any way I can move the new-user/user-login page to one of my normal internal header pages which would use my headernormal.php header?

    Many thanks

    Stu

    #49577

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    this should be:

    
    
    
    <?php if(is_front_page() && (!isset($_GET['geodir_signup']))) { include 'headerhome.php';} else { include 'headernormal.php';}
    ?>

    Let us know,

    Thanks

    #49587

    Stu
    Expired Member
    Post count: 16

    Yes. This code works perfectly:

    <?php if(is_front_page() && (!isset($_GET[‘geodir_signup’]))) { include ‘headerhome.php’;} else { include ‘headernormal.php’;}
    ?>

    Thanks Paolo for the quick response.

    Stu

    #49588

    Paolo
    Site Admin
    Post count: 31211

    You are welcome 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount