Modify Login Page

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

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

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #62522
    #62587

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you could use this action to add text above the signup forms:

    do_action('geodir_sidebar_signup_top');

    Example (add : some dummy text)

    
    
    add_action('geodir_sidebar_signup_top', 'my_signin_customtext');
    
    function my_signin_customtext() {echo '<h3>Some Dummy Text</h3>';}

    This will be the result: http://wpgeo.directory/gd-login/

    Otherwise you can create a folder called geodirectory in your child theme and move copies of the plugins templates in it to modify them.

    https://wpgeodirectory.com/docs/customizing-geodirectory-templates/

    In this case you want to modify geodir-signup.php

    Thanks

    #62896

    netbrasil
    Expired Member
    Post count: 133

    Hi, thanks! but what if i want to add the content inside the ‘<div class=”login_content”>’ DIV or just above the ‘<div class=”login_form_box”>’?

    then another separate content above the registration form box

    im trying to achive this design as much as possible: http://prntscr.com/9blqv4

    I tried copying the login_frm.php inside theme/geodirectory but didnt work. What am i doing wrong

    #62949

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    login_frm and reg_frm.php templates can’t be moved in a child theme for editing. They are included in the template geodir-signup.php via this action :

    do_action('geodir_signup_forms');

    The best way to do what you need to do would be this:

    In your child theme functions.php Remove the action calling the original function that includes the forms:

    remove_action('geodir_signup_forms', 'geodir_action_signup_forms', 10);

    Copy the function geodir_action_signup_forms from geodirectory_template_actions.php, paste it in your child theme functions.php and rename it to :

    my_geodir_action_signup_forms

    Now you can modify the function as you wish, you can even make it include customized login_frm and reg_frm.php templates taken from your child theme.

    Least, add a new action to call your customized function:

    add_action('geodir_signup_forms', 'my_geodir_action_signup_forms', 10);

    Let me know if this helped,

    Thanks

    #63033

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi,

    Try this:

    
    
    add_action('geodir_signup_forms','my_signup_page_text',5);
    function my_signup_page_text(){
        echo "<p>My text yo!</p>";
    }

    Stiofan

    #63046

    Scott Macdonald
    Buyer
    Post count: 286
    This reply has been marked as private.
    #63073

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you’ll need to create the features as custom fields and us the advance search filters add-on to allow for something similar.

    Custom fields will only be few extra check box in the add listing page.

    Let us know how you went,

    Thanks

    #63076

    Scott Macdonald
    Buyer
    Post count: 286
    This reply has been marked as private.
    #63087

    Paolo
    Site Admin
    Post count: 31206

    GeoDirectory >> Place settings (or any other CPT)…

    Thanks

Viewing 9 posts - 1 through 9 (of 9 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