Support » Plugin: kk Star Ratings - Rate Post & Collect User Feedbacks » Your plugin is compatible with AMP?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Unfortunetly no.

    I use this plugin for AMP:
    https://wordpress.org/plugins/amp/

    and gets some errors in validator:
    https://validator.ampproject.org/#

    The attribute 'vocab' may not appear in tag 'div'.
    DISALLOWED_HTML
    line 487, column 32
      
    The attribute 'property' may not appear in tag 'div'.
    DISALLOWED_HTML
    line 487, column 82
      
    The attribute 'property' may not appear in tag 'div'.
    DISALLOWED_HTML
    line 487, column 173
      
    The attribute 'property' may not appear in tag 'span'.
    DISALLOWED_HTML
    line 487, column 230
      
    The attribute 'property' may not appear in tag 'span'.
    DISALLOWED_HTML
    line 487, column 275

    I think it’s very easy to solve (disabling rich snippets on AMP).

    Dear plugin author, can you help us? 🙂
    I would be very glad and thankfull to hear that.
    Have a nice day!

    MK

    Thread Starter diegoaluz

    (@diegoaluz)

    I also received these errors

    Hi,
    There is simple workaround in file: kk-star-ratings/index.php

    public function markup($id=false)
    {
        if(get_query_var('amp')) {
            return '';
        }
    
        $id = !$id ? get_the_ID() : $id;
        if($this->exclude_cat($id))
        {
    	return '';
        }

    I simply added this code:

    if(get_query_var('amp')) {
        return '';
    }

    and now there is no validation errors 🙂

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Your plugin is compatible with AMP?’ is closed to new replies.