Search Results for 'contact_url'

LiveMesh WP Themes Support Forums Search Search Results for 'contact_url'

Viewing 12 results - 1 through 12 (of 12 total)
  • Author
    Search Results
  • #5058

    stevecdn
    Participant
    Post count: 6

    I found the file in wp-content/themes/agile/framework/shortcodes

    I then changed it as noted to name=”contact_company” from “contact_url”

    Same issue – so I changed it back. I cannot find the “contact form” I am reading about, which has the place to change it.

    Where is that form? Is it in the theme as it’s not on my server. thx

    #5056

    stevecdn
    Participant
    Post count: 6

    Meteorite,

    I don’t know why you think you require http:// just to have a valid URL. That’s just bad.

    Nevertheless, I’m not even sure if we have a child theme loaded, so the question is, where do I find where to edit this? You had stated

    framework/shortcodes/contact-shortcodes.php file in the child theme….however I cannot find it. Or, is there a place within the theme to find the shortcode to edit? I again couldn’t find which one had contact_url

    Thx

    #4739
    meteorite
    meteorite
    Moderator
    Post count: 1573

    Pls change the name from contact_url to contact_company to disable validation. If you have the child theme loaded, you need to make the change in framework/shortcodes/contact-shortcodes.php file in the child theme for changes to take effect. Here is the code that should work –

    Also, I released an update yesterday which has an example of a contact form which looks exactly like the one that comes with the theme. But you will need to load the latest version of the theme for that to take effect. The advantage with contact form 7 is that you can customize it to your needs without modifications to the code and there are quite a few choices available for building a form.

    #4511
    meteorite
    meteorite
    Moderator
    Post count: 1573

    Ok my mistake. I had an example contact-shortcodes.php file in the child theme which had to be modified. Good thing is that you do not have to modify the core theme files and keep the customization in the child theme so that the change is not lost. Pls have a look and things look ok pls let me know. I had to make one additional change to the above to block URL validation by Javascript – had to change the name to contact_company from contact_url –

    #4475

    urbanheather
    Participant
    Post count: 18

    Hi. I kept the original code so that’s no problem. I amended the code and only edited exactly as you have said and still there is no change to my website. This is extremely frustrating :(

    if (mo_to_boolean($web_url))
    $output .= ‘<p><label>’ . __(‘Company’, ‘mo_theme’) . ‘</label><input type=”text” name=”contact_url” placeholder=”‘ . __(“Company:”, ‘mo_theme’) . ‘” class=”text-input”/></p>';

    http://www.yumbelievable.co.uk/

    #4442
    meteorite
    meteorite
    Moderator
    Post count: 1573

    Looks like your code was changed a little more than needed. To make this work, you should make the change exactly as provided above. So, pls ensure you do not modify the if condition (if (mo_to_boolean($company_name) – retain the original code here) and also ensure that name=”contact_url” is retained so that the framework/scripts/sendmail.php script processes the value entered. Hope this resolves the issue.

    #4257
    meteorite
    meteorite
    Moderator
    Post count: 1573

    You can do so by editing the file framework/shortcodes/contact-shortcodes.php file at line number 37. Rename the strings from URL to company and then need to change the type of input from url to text this way –

    #1836

    In reply to: Contact Form


    cattopp
    Participant
    Post count: 10

    Thanks for your reply.

    At the moment, when I hit submit, nothing at all is happening…no message saying email has been sent.

    I’ve also gone into the main.js file, but it doesn’t seem to have worked. I’m very new to this, so would have probably done it wrong. I just deleted the stuff referencing anything about minimum characters:

    var rules = {
    contact_name: {
    required: true
    },
    contact_email: {
    required: true,
    email: true
    },
    contact_phone: {
    required: false
    },
    contact_url: {
    required: false,
    url: true
    },
    human_check: {
    required: true,
    range: [13, 13]
    },
    message: {
    required: false
    }
    };

    I also can’t find where the text lives (saying please enter your email address etc). If I want to edit that, where do I find it?

    Thanks,
    Cathy

    #1059

    In reply to: Contact Form


    mocoblanco
    Participant
    Post count: 4

    Thank you very much for helping me out. I changed the .php file on line 34, and put this:

    if (mo_to_boolean($web_url))
    $output .= ‘<p><label>’ . __(‘City’, ‘mo_theme’) . ‘</label><input type=”city” name=”contact_url” placeholder=”‘. __(“Your City”, ‘mo_theme’).'” class=”text-input”></p>';

    and then in the .js file I put this:

    contact_url: {
    required: true,
    minlength: 15
    },

    And I am getting a “validation error” message when I try to put a City on that box.

    #355

    livemesh
    Keymaster
    Post count: 1011

    Any translation issues reported with PHP was fixed in the last update. At present, translation for Javascript code is not implemented yet (only the contact form has couple of strings there). Can you pls take a look at {enticing theme folder}/js/main.js and look for the string and change accordingly? Will take care of this in the next update.

    BTW, the contact form in the latest update has been enhanced with new fields and validation checks. Pls have a look if you have not done so already.

    #313

    livemesh
    Keymaster
    Post count: 1011

    I apologize for the delay in replying. The issue you are having is due to we failing to use WordPress translation function inside our custom shortcode. I have already made changes to take care of this in my update scheduled for this week. The update is presently being tested.

    For now, if you are comfortable, can you make some HTML code changes to the file contact-shortcodes.php in <wordpress install directory>\wp-content\themes\enticing\framework\shortcodes\ directory to take care of this? The bottom portion of this file contains the HTML code for contact form. Pls replace the English language strings like Name, Email, Comment with the corresponding strings in the language of your choice.

    <p>
    <label>Name *</label>
    <input type="text" name="contact_name" class="text-input" />
    </p>
    <p>
    <label>Email *</label>
    <input name="contact_email" class="text-input" type="email"/>
    </p>
    <p>
    <label>Web URL </label>
    <input type="url" name="contact_url" class="text-input"/>
    </p>
    <p>
    <label>Comment *</label>
    <textarea name="message" rows="8" cols="40"></textarea>
    </p>

    Hope this works for now. Pls let us know if you face further translation issues. Thanks for helping us uncover this defect.

    #249

    In reply to: Contact Page


    livemesh
    Keymaster
    Post count: 1011

    The response at present employs name supplied by the user in the subject. Email is implied by reply-to email addresses or the sent email address. The form itself does not have subject field. Since this is often requested feature, I plan on adding a few more fields to the contact form and making it optional from the shortcode provided. Give me a few days time. If you have some specific fields in mind and need urgently, let me know and I can make the required change and email you the modified files.

    For now, to add fields or to remove fields like phone or subject, you will need to make some HTML code changes to the file contact-shortcodes.php in <wordpress install directory>\wp-content\themes\enticing\framework\shortcodes\ directory to take care of this. The bottom portion of this file contains the HTML code for contact form.

    <p>
    <label>Name *</label>
    <input type="text" name="contact_name" class="text-input" />
    </p>
    <p>
    <label>Email *</label>
    <input name="contact_email" class="text-input" type="email"/>
    </p>
    <p>
    <label>Web URL </label>
    <input type="url" name="contact_url" class="text-input"/>
    </p>
    <p>
    <label>Comment *</label>
    <textarea name="message" rows="8" cols="40"></textarea>
    </p>

    As an example of removing a field, to get rid of Web URL, pls remove the following code in line numbers 31 to 34 –

    <p>
    <label>Web URL </label>
    <input type="url" name="contact_url" class="text-input"/>
    </p>

    In order to obtain the new field values and process them, pls modify the file <wordpress install directory>\wp-content\themes\enticing\scripts\sendmail.php The php code in this file is simple enough to modify to help capture values for the new fields.

    Thanks and let us know if you have more questions.

Viewing 12 results - 1 through 12 (of 12 total)