Add text above Log In form
This topic contains 12 replies, has 5 voices, and was last updated by Kiran 8 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
October 16, 2017 at 8:42 pm #400971
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!
October 16, 2017 at 9:09 pm #400983Hi 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.
October 17, 2017 at 3:19 am #401046Let us know how you went after doing what Joy suggested.
ThanksOctober 17, 2017 at 4:54 pm #401180Thank 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!!
October 17, 2017 at 5:08 pm #401182You 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.
October 17, 2017 at 5:10 pm #401183cant you copy the file into child theme and then modify?
October 17, 2017 at 5:12 pm #401184Unfortunately 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.
October 17, 2017 at 5:59 pm #401200Hi 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!
October 17, 2017 at 6:33 pm #401207This reply has been marked as private.October 17, 2017 at 6:34 pm #401209This reply has been marked as private.October 17, 2017 at 7:16 pm #401217So sorry Lydia, I thought you were using a GD theme!
October 18, 2017 at 8:55 am #401291Hi Lydia,
I’ll get a developer to help you with this. Sorry for the delay.
Thanks!
October 25, 2017 at 4:33 am #402437Hi 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 -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket