Add text above Log In form

This topic contains 12 replies, has 5 voices, and was last updated by  Kiran 6 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #400971

    Lydia Williams
    Expired Member
    Post count: 42

    Hello,

    I tried to follow these instructions. Where am I supposed to put this code (see attached screenshot? I could not find a file called geodir-signup.php. Only found signup_function. I copied this to my child them, called it my_signup_function and tried to add to bottom of this file but it didn’t work. I need very specific instructions for a noobie iwth php. thanks!

    #400983

    Joy
    Buyer
    Post count: 1076

    Hi Lydia,

    Add the WordPress plugin called “Code Snippets”. Create a new snippet with the code that Paolo provided you with and activate the code to see the changes you create.

    #401046

    Guust
    Moderator
    Post count: 29970

    Let us know how you went after doing what Joy suggested.
    Thanks

    #401180

    Lydia Williams
    Expired Member
    Post count: 42

    Thank you but I really don’t want to use a plugin. I want to follow the instructions that were created in an earlier post which I included a snapshot of but I don’t know where precisely to put it. Thanks!!

    #401182

    Joy
    Buyer
    Post count: 1076

    You actually place that code snippet using the plugin. Otherwise, you would edit core files and with each update, your changes would all be lost.

    The way the themes are set up, the code snippet plugin is really the best way to go.

    #401183

    Lydia Williams
    Expired Member
    Post count: 42

    cant you copy the file into child theme and then modify?

    #401184

    Joy
    Buyer
    Post count: 1076

    Unfortunately the child theme is not set up this way as traditional child themes go. It takes a bit of getting used to, but after using the code snippets plugin (I normally edit child theme files) I can say that it’s much easier and more manageable.

    #401200

    Kor
    Moderator
    Post count: 16516

    Hi Lydia Williams,

    Looks like you’re using the “Enfold Theme”. You can use child theme for this one but could you share FTP access and WP admin so that we could check further? Also, tell us what are you trying to achieve there.

    Thanks!

    #401207

    Lydia Williams
    Expired Member
    Post count: 42
    This reply has been marked as private.
    #401209

    Lydia Williams
    Expired Member
    Post count: 42
    This reply has been marked as private.
    #401217

    Joy
    Buyer
    Post count: 1076

    So sorry Lydia, I thought you were using a GD theme!

    #401291

    Kor
    Moderator
    Post count: 16516

    Hi Lydia,

    I’ll get a developer to help you with this. Sorry for the delay.

    Thanks!

    #402437

    Kiran
    Moderator
    Post count: 7069

    Hi Lydia,

    If you want separate custom text above Sign In & Sign Up form then use following code snippet.

    
    
    // Custom text on GD Sign Up form
    function _gd_custom_text_on_signup_form( $value, $option ) {
        $value = __( 'If you would like to become a member and add a listing, you must first register using Sign Up Now.', 'your-text-domain' );
        
        return $value;
    }
    add_filter( 'pre_option_ptthemes_reg_page_content', '_gd_custom_text_on_signup_form', 10, 2 );
    
    // Custom text on GD Sign In form
    function _gd_custom_text_on_signin_form( $value, $option ) {
        $value = __( 'If you already have an account, please Sign In.', 'your-text-domain' );
        
        return $value;
    }
    add_filter( 'pre_option_ptthemes_logoin_page_content', '_gd_custom_text_on_signin_form', 10, 2 );

    If you want to add custom text on page top then use following code snippet.

    
    
    function _gd_custom_text_on_signin_signup_page() {
        echo __( 'If you already have an account, please Sign In. If you would like to become a member and add a listing, you must first register using Sign Up Now.', 'your-text-domain' );
    }
    add_action( 'geodir_signup_forms', '_gd_custom_text_on_signin_signup_page', 9 );

    Add any one of snippet to your child theme functions.php.

    Let us know.

    Thanks,
    Kiran

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

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

Open Support Ticket