Where do I access CONTACT FORM shortcode code?

resolved (25 posts) (8 voices)

  1. hanazair
    Member

    Dear Support,

    I need to add another a field to the CONTACT FORM. Although I could write my own Contact Form, I would prefer to edit the shortcode code, as using shortcodes is very convenient. I'm having hard time locating the files where Contact Form is generated and processed. I searched through the theme files, but haven't been able to find them. Could you please direct to the files relevant to the Contact Form (both php and AJAX scripts). I then can figure out myself how to edit them, I just need to know which files do I need to look in. :)

    Thanks.

    Posted 1 year ago #
  2. Dorian
    Support

    Hi hanazair,

    \lib\functions\theme-functions.php starting line 503,
    \lib\functions\shortcode.php starting line 744.

    Let me know if you need anything else.

    Cheers,
    Uniq

    Posted 1 year ago #
  3. dediger
    Member

    Hi,

    Just wondering if you can be a bit more specific with the code that I would need to add the following to the contact form, and where it would need to be added... Thanks.

    (* All fields required)
    First Name
    Last Name
    Country
    Phone

    Posted 1 year ago #
  4. Dorian
    Support

    Hi dediger,

    I would kindly like to suggest you the following plugin: http://wordpress.org/extend/plugins/contact-form-7/

    It integrates with the theme and it's exactely what you are looking for as modifying the code will give you some headaches at this point for sure!

    Let me know if you managed to get this working!

    Cheers,
    Dorian

    Posted 1 year ago #
  5. I have just tested this Plugin on my website and it works very well. Good flexibility for adding custom fields.
    Thanks Dorian

    Posted 1 year ago #
  6. Agreed. Contact Form 7 is definitely recommended!

    Posted 1 year ago #
  7. crouchjane
    Member

    Hello,

    Please can you tell me where and how to make some modifications in the Contact Form? What I would like to know is how to add another field called "Post Title".
    I would like to mention that I have been using the Contact Form 7 plugin, sometimes it informs me about where a response is from but in most cases it does not so I do not really know what my visitors refer to when sending a comment. Another thing is that the Contact Form 7 works fine with my Awake theme on my other site.

    Thank you.

    crouchjane

    Posted 9 months ago #
  8. Elliott
    Support

    Hello crouchjane,

    Which version of Awake are you using? If your using 2.0+ you can easily add new fields, http://mysitemyway.com/docs/index.php?title=Contact_Forms.

    Posted 9 months ago #
  9. crouchjane
    Member

    Hi Elliot,

    Before I do anything, do I have to disable the Contact Form 7 or shall I just leave it as it is?

    Cheers.

    Posted 9 months ago #
  10. Elliott
    Support

    I don't think it will mess with anything but it would be best to use one or the other.

    Posted 9 months ago #
  11. crouchjane
    Member

    Thanks for the link Elliot but I`m still confused where to paste these shortcodes.
    Sorry to be a pain but I`m still learning. :)

    Posted 9 months ago #
  12. Elliott
    Support

    A shortcode can be used pretty much anywhere.

    Which version of Awake are you using?

    Posted 9 months ago #
  13. crouchjane
    Member

    It`s Awake 2+.

    Posted 9 months ago #
  14. crouchjane
    Member

    Hm, I just noticed something. There is something missing in this puzzle.

    Would that cause a problem?

    Attachments

    1. Missing_element.png (13.6 KB, 1 downloads) 9 months old
    Posted 9 months ago #
  15. Elliott
    Support

    I'm not sure what you mean crouchjane. That is most likely a part of the contact forms plugin.

    Have you tried out our contact form shortcode, http://mysitemyway.com/docs/index.php?title=Contact_Forms ?

    Posted 9 months ago #
  16. crouchjane
    Member

    Sorry... Basically what happened was, I compared both of my sites and discovered that one of them has "Contact" that I can easily access to add another field and the other one has not. So I still don`t know what to do.

    I have not tried to paste your shortcodes because I don`t know where exactly they should be placed.

    Posted 9 months ago #
  17. Elliott
    Support

    Go ahead and deactivate all of your contact related plugins it sounds like they are just causing confusion.

    You can use our contact form shortcode anywhere. Inside your page content, a text widget, the admin options panel, etc etc.

    The easiest way to start would be with our shortcode generator, http://mysitemyway.com/docs/index.php?title=Using_the_Shortcode_Generator.

    Just create a new page and you'll see it below your Visual editor. Select the contact form shortcode and fill out all of the options.

    After you get familiar on how to use it make sure to read this page, http://mysitemyway.com/docs/index.php?title=Contact_Forms, it will teach you how to setup your own fields.

    Posted 9 months ago #
  18. crouchjane
    Member

    Ok, here is what I did: I have deactivated all the plugins I have not used for a very long time and then tried to apply the Contact Form 7 again by coping this code [contact-form 1 "Contact form 1"] into my widget text which I placed in my right sidebar and it finally worked!!!!

    Elliot, you have been a top man for putting up with me! :) Thank you soooooo much for your tips and support.

    Best wishes,

    crouchjane

    Posted 9 months ago #
  19. Elliott
    Support

    Glad you got it sorted crouchjane, let us know if you have any other questions.

    Posted 9 months ago #
  20. breezemaster
    Member

    Due to an unknown number of template customizations, I'm not ready to upgrade my infocus theme to the latest. (can't see which version I have currently sorry).. I would however like to take advantage of built in captchas & askimet support.

    Can I add this functionality without having to do the complete upgrade?

    re:
    http://mysitemyway.com/docs/index.php/Contact_Form
    http://mysitemyway.com/docs/index.php/Contact_Forms

    Posted 9 months ago #
  21. breezemaster
    Member

    OK. I'm on version 1.6

    Posted 9 months ago #
  22. Elliott
    Support

    It would take quite a bit of customization for that breezemaster. If your using 1.6 and wish to stay there then it would be best to use a plugin such as contact form 7 which has built-in captcha and akismet support also.

    Posted 9 months ago #
  23. breezemaster
    Member

    OK. Thanks... I may just have to bravely attempt a theme upgrade :-/ ...some nice new features :-)

    Posted 9 months ago #
  24. breezemaster
    Member

    I just noticed there is a honeypot in submit.php ...which is where I'm getting my spam from.

    Do I need to do something to enable this somehow?

    <?php
    /**
     * Contact Form Submit
     */
     
    //Check to see if the honeypot captcha field was filled in
    if(trim($_POST['checking']) !== '') {
    	$captchaError = true;
    } else {
    Posted 9 months ago #
  25. Elliott
    Support

    See here, http://mysitemyway.com/docs/index.php?title=Contact_Forms.

    You can enable the captcha and akismet through the shortcode.

    Posted 9 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme