{"id":5963756,"date":"2015-03-31T14:57:26","date_gmt":"2015-03-31T14:57:26","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/changing-schema-type-without-functionphp\/"},"modified":"2016-08-24T14:15:22","modified_gmt":"2016-08-24T14:15:22","slug":"changing-schema-type-without-functionphp","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/changing-schema-type-without-functionphp\/","title":{"rendered":"Changing Schema Type without function.php"},"content":{"rendered":"<p>Hello<\/p>\n<p>thank you very much for doing this awesome plugin.<\/p>\n<p>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). <\/p>\n<p>Is there a possibility to do so using your wp-postratings\/wp-postratings.php file? If yes how?<\/p>\n<p>I tried to change this line there to SoftwareApplication:<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n\/\/ Check To See Whether User Has Voted<br \/>\n\t$user_voted = check_rated($ratings_id);<br \/>\n\t\/\/ HTML Attributes<br \/>\n\tif( is_single() || is_page() ) {<br \/>\n\t\t$itemtype = apply_filters(&#8216;wp_postratings_schema_itemtype&#8217;, &#8216;itemscope itemtype=&#8221;http:\/\/schema.org\/SoftwareApplication &#8220;&#8216;);<br \/>\n\t\t$attributes = &#8216;id=&#8221;post-ratings-&#8216;.$ratings_id.'&#8221; class=&#8221;post-ratings&#8221; &#8216;.$itemtype;<br \/>\n\t} else {<br \/>\n\t\t$attributes = &#8216;id=&#8221;post-ratings-&#8216;.$ratings_id.'&#8221; class=&#8221;post-ratings&#8221;&#8216;;<br \/>\n\t}<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>but after doing so the google structured data analyzer tool claims that there are no aggregate data for SoftwareApplication.<\/p>\n<p>Please help changing the Schema Type<\/p>\n<p>Many Thanks<\/p>\n<p>https:\/\/wordpress.org\/plugins\/wp-postratings\/<\/p>\n","protected":false},"template":"","class_list":["post-5963756","topic","type-topic","status-closed","hentry","topic-tag-function-php","topic-tag-schema-type","topic-tag-schema-org"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5963756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5963756\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5963756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}