Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #335344

    Hi, i’m very happy with the Enfold theme. I have 2 questions i’m trying to figure out:

    – Is there any way I can have the checkbox form elements prechecked?
    – I need a change language option for English and French, with the URL pages for French having /fr after the domain name. Ideally i’d like the change option as a drop down or link select in the header. What’s the best way to go about that? Can WPML accomplish that?

    Appreciate any help on the above. Thanks!

    #335479

    Hi digitalcrossover!

    Thank you for using Enfold.

    1.) It’s not possible with the theme’s contact form by default but you can use the Contact Form 7. Refer to this link: http://contactform7.com/checkboxes-radio-buttons-and-menus/

    2.) Yes, use the WPML plugin if you want multi language site. :)

    Regards,
    Ismael

    #338127

    Hi Ismael!
    Thanks for your help, I highly appreciate it. Is there any way to edit the theme or custom settings to have all checkbox’s prechecked, i’d prefer not having to use a separate plugin for it.

    Thanks to let me know, I’m very happy with Enfold!

    #339926

    Hi,

    Open /enfold/framework/php/class-form-generator.php and look for line 417:

    if(empty($_POST[$id])) $_POST[$id] = "false";
    

    Replace it by this:

    if(empty($_POST[$id])) $_POST[$id] = "false";
    $checked = 'checked="checked"';
    

    Regards,
    Josue

    #340397

    Thank you, works perfect, appreciate the help both!

    #340405

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Precheck Checkbox and Language question’ is closed to new replies.