-
AuthorPosts
-
Pankaj Sharma Moderator
Pankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 12, 2016 at 7:11 pm #845933Hi
its defined in the js files of the template .
Go to /js/script.js file in the template and find this code// Add Placeholder form contact var formContact = $('.com_contact'); if (formContact.length > 0) { $('#jform_contact_name', formContact).attr('placeholder','Name'); $('#jform_contact_email', formContact).attr('placeholder','Mail'); $('#jform_contact_emailmsg', formContact).attr('placeholder','Subject'); $('#jform_contact_message', formContact).attr('placeholder','Write your message here');
Change rhe placeholder Name … from there .
Hope it helps .librandi Friendlibrandi
- Join date:
- February 2012
- Posts:
- 587
- Downloads:
- 89
- Uploads:
- 163
- Thanks:
- 123
- Thanked:
- 2 times in 2 posts
January 13, 2016 at 7:12 am #846389thank you, but if I use the multilinguage how I can do?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 13, 2016 at 2:06 pm #846689Hi
for multiple language you need to define the language strings (JText::_( ‘Example_1’ ))
and then define it in the language files in /language/en-GB/ …ini files of contact .
https://docs.joomla.org/Formatted_fields_in_language_translation_stringslibrandi Friendlibrandi
- Join date:
- February 2012
- Posts:
- 587
- Downloads:
- 89
- Uploads:
- 163
- Thanks:
- 123
- Thanked:
- 2 times in 2 posts
January 15, 2016 at 8:47 pm #849040excuseme,
where I define (JText::_( ‘Example_1’ ))?
please can you tell me the various step?
many thanksPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 18, 2016 at 4:41 am #851282Hi librandi i consult with Ninja Lead and here is solution for this
go to /ja_mono/html/com_contact/contact/default_form.php file Add this code at the end of file
var Name_txt="<?php echo JText::_('Name txt'); ?>"; </script>
Like Here > http://prntscr.com/9rl1ot
Now open script.js file in template find this code
$('#jform_contact_name', formContact).attr('placeholder',Name);
replace it with
$('#jform_contact_name', formContact).attr('placeholder',Name_txt);
Define NAME_TXT in /language/en-GB/en-GB.tpl_ja_mono.ini add define new entry .
NAME_TXT = "your text"
hope it helps
Please NOTe : </script> in this thread is closing script tag , due to Editor its not displaying properly .
librandi Friendlibrandi
- Join date:
- February 2012
- Posts:
- 587
- Downloads:
- 89
- Uploads:
- 163
- Thanks:
- 123
- Thanked:
- 2 times in 2 posts
January 19, 2016 at 4:33 pm #857149Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 20, 2016 at 2:38 am #860065Hi
I need FTP details of your site to check this problem .
Kindly send it via Private reply , the code is working at my end , i will check it on your site and back to you.librandi Friendlibrandi
- Join date:
- February 2012
- Posts:
- 587
- Downloads:
- 89
- Uploads:
- 163
- Thanks:
- 123
- Thanked:
- 2 times in 2 posts
January 20, 2016 at 8:02 am #862701This reply has been marked as private.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 20, 2016 at 8:19 am #862790Hi
You have not posted FTP Host . Anyway i fixed it without FTP .
I found syntax errors in script.js and in default_form.php File , I corrected them now you can see it working fine on your site : http://prntscr.com/9sf0c3AuthorPostsViewing 9 posts - 1 through 9 (of 9 total)This topic contains 9 replies, has 2 voices, and was last updated by Pankaj Sharma 8 years, 10 months ago.
The topic ‘contact form’ is closed to new replies.
contact form
Viewing 9 posts - 1 through 9 (of 9 total)