Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #97315
    Edwin
    Participant

    Hi, I am not able to find the HTML template. I need to insert the google snippet for recaptcha.

    I thought I would find it here: public_html/wp-content/themes/adventurous-pro

    But no luck. I am stumped, would you clue me in please?

    #97330
    Mahesh
    Keymaster

    @mmhgloba: I don’t quite get what you mean. Can you please clarify more.

    Regards,
    Mahesh

    #97386
    Edwin
    Participant

    I want to install google recaptcha verification on my comments and also contact me page.

    my website is mm2hglobaltravel dot com

    googles instructions state this for client side integration:

    Paste this snippet before the closing </head> tag on your HTML template:

    and then:

    Paste this snippet at the end of the <form> where you want the reCAPTCHA widget to appear:

    I want to confirm the locations to place the snippets properly.

    I am unable to locate the HTML template in cpanel files. I believe it may be accessible from wp-admin but I am not sure where.

    Also, please clarify the location to place the snippet for the contact me and post comments.

    Thank you I hope this clarifies my question.

    #97399
    Mahesh
    Keymaster

    @mmhgloba: Sorry but WordPress doesn’t work that way. It doesn’t have separate html template as the actual html. For first snippet, you can add it to header.php file before line 30 which will be before </head> tag or go to Dashboard=> Appearance=> Customize=> Webmasters Tools=> Header Footer Codes and add the code snippet in Code to display on header.
    And for the other snippet, which goes after footer, I guess you’ll need to put it in comments.php. The comment form displayed with this file.
    You’ll need to create child theme for this. You can find more details on creating child theme HERE.
    If you are not familiar with coding/programming, I recommend you to hire a customizer.

    Regards,
    Mahesh

    #97403
    Edwin
    Participant

    I have already created a childs theme. I would like to install recaptcha in comments and also the contact me page. Not only for comments.

    I inserted the 1st snippet per your instructions.

    #97431
    Mahesh
    Keymaster

    @mmhgloba: For 2nd snippet, copy comments.php file to your child theme and add the code snippet after <?php comment_form(); ?> line 75. And I guess, for contact page, you are using some plugins, you’ll need to add the code after the form from the plugin.

    Regards,
    Mahesh

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘HTML Template’ is closed to new replies.