Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • Pankaj Sharma Moderator
    #845933

    Hi
    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 Friend
    #846389

    thank you, but if I use the multilinguage how I can do?

    Pankaj Sharma Moderator
    #846689

    Hi
    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_strings

    librandi Friend
    #849040

    excuseme,
    where I define (JText::_( ‘Example_1’ ))?
    please can you tell me the various step?
    many thanks

    Pankaj Sharma Moderator
    #851282

    Hi 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'); ?>";
    &lt;/script&gt;

    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 Friend
    #857149

    thank you very much,
    I follow your istruction but the result is like screenshot


    1. Cattura-4
    Pankaj Sharma Moderator
    #860065

    Hi
    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 Friend
    #862701
    This reply has been marked as private.
    Pankaj Sharma Moderator
    #862790

    Hi
    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/9sf0c3

Viewing 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.