• Resolved TerraBite

    (@terrabite)


    Hello

    thank you very much for doing this awesome plugin.

    I use your plugin on 5 sites of my website (so not globally) and would like to change the Schema.org-Type from Article to SoftwareApplication without touching the function.php of my theme (to insert the code you reccomanded in the readme).

    Is there a possibility to do so using your wp-postratings/wp-postratings.php file? If yes how?

    I tried to change this line there to SoftwareApplication:
    —————————————–
    // Check To See Whether User Has Voted
    $user_voted = check_rated($ratings_id);
    // HTML Attributes
    if( is_single() || is_page() ) {
    $itemtype = apply_filters(‘wp_postratings_schema_itemtype’, ‘itemscope itemtype=”https://schema.org/SoftwareApplication “‘);
    $attributes = ‘id=”post-ratings-‘.$ratings_id.'” class=”post-ratings” ‘.$itemtype;
    } else {
    $attributes = ‘id=”post-ratings-‘.$ratings_id.'” class=”post-ratings”‘;
    }

    ————————–

    but after doing so the google structured data analyzer tool claims that there are no aggregate data for SoftwareApplication.

    Please help changing the Schema Type

    Many Thanks

    https://www.ads-software.com/plugins/wp-postratings/

Viewing 1 replies (of 1 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Sorry, I don’t provide support for modification of the plugin.

    Having said that, I would recommend using the function instead of modifying the plugin instead because if there is a security update to the plugin, you will lose your changes.

Viewing 1 replies (of 1 total)
  • The topic ‘Changing Schema Type without function.php’ is closed to new replies.