Support » Plugins and Hacks » Report Content » To add the report form manually

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi. You can try adding the php code right above the_content() call in any of your theme templates.

    Hi,
    Thank yo for your answer.
    I did that please see: http://tecnobiz.com.ar/servicios/registro/.
    The first form is added manually with the php code right above the_content()
    call (I created a page template for that).
    The second is with the automatic setting. There is a difference between both.
    How can I get the same result (I mean as the automatic).
    Thank!

    Hi Li-An,
    Thanks for your answer!
    The first form (added manually) is above the entry-title “Registro”, the second (added automatically) is below the “entry-title”.

    How can add the form below the entry-title “Registro”, manually?

    (There are some minor differences in the height of the lines but they are not important).

    Thanks, regards,

    Well, it depends on your theme, it’s impossible to answer you like that.

    Hi Li-An,
    I’m using the WordPress theme Twenty Twelve.

    For Twenty Twelve, you have to look at content.php – for posts (content-page.php for pages) and insert the function near

    <h1 class="entry-title"><?php the_title(); ?></h1>

    before or after, depends of your need.

    Hi Li-An,
    Thank again for your answer!
    Your solution works fine, but for all the pages. The problem is that I want to put the form in only one page, please, how can I do that?

    You have to create a template for this particular page or make a a condition “if this page then…”
    First, you got to create a child theme.

    Hi Li-An,
    I created a child the and a template page called “formulario-error.php”. Please tell me how to put the form only in this template page.
    Thank you!

    I think it’s more convenient to use a conditional php function as the theme calls a special file for single page – as you saw.

    Copy content.php in your child theme. Copy

    <?php if is_single( 'xxx' ) {
    wprc_report_submission_form()
    } ?>

    where xxx is the ID of your post – you can grab it in the listing of posts when moving the mouse on the edit link or show link – at the place you need.
    I think it will work – I’m not good in code.

    Hi Li-An,
    Thank you!
    Now is working fine. The correct script is:

    ´<?php if (is_page(xx)) { wprc_report_submission_form();} ?>´

    I also changed style.css in the child theme, adding:

    .wprc-form {
    line-height: 2;
    }

    Best regards from Buenos Aires, Argentina!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘To add the report form manually’ is closed to new replies.