Support » Plugin: Multi Rating » The mandatory attribute ‘target’ is missing.

  • Resolved Tharkon

    (@tharkon)


    AMP now requires all forms to have a target attribute. Is it possible to have the form in multi-rating include a target=’_top’ attribute rather than having it be implied?

    • This topic was modified 2 years ago by Tharkon.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dpowney

    (@dpowney)

    Hi Tharkon,

    The plugin has an in-built template system. Under the templates directory, there’s a file called rating-form.php. You can copy this file into your theme and edit it as required. There’s documentation on the template system for the Pro version, but the free version is very similar. https://multiratingpro.com/documentation/developers/template-system

    You can change the following line to add the target attribute in the form:
    <form id="rating-form-<?php echo $post_id; ?>-<?php echo MR_Rating_Form::$sequence; ?>" action="#">

    Change to:
    <form id="rating-form-<?php echo $post_id; ?>-<?php echo MR_Rating_Form::$sequence; ?>" action="#" target="_top">

    I can look at adding this into the core plugin in future.

    I hope this helps,
    Daniel

    • This reply was modified 2 years ago by dpowney.

    Awesome, thanks.

    I just needed to change the name of the folder multi-rating-pro to multi-rating and that worked.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The mandatory attribute ‘target’ is missing.’ is closed to new replies.