• Resolved Fabio Matias

    (@borrelho)


    Hi,

    it would be possible to have the structured data, on a page other than the homepage.

    I would like to use the rich snippet in the main service offered by my website.

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Design Extreme

    (@designextreme)

    @borrelho Thanks for the feature request!

    I will add something to the Structured Data option (google_business_reviews_rating_structured_data) in a subsequent version that will override the default “front page” option – probably just the post_id of the page in question that can be edited manually.

    I will post a reply here when this is available to use.

    Thread Starter Fabio Matias

    (@borrelho)

    Perfect. It seems to work replacing manually with the desired page id.

    if (!$return && !$string && empty($data) && !is_page( XXX ))
    		{
    			return;
    		}
    Plugin Author Design Extreme

    (@designextreme)

    @borrelho I’ll add something more permanent in the next version – something that you’ll be able to set in the options table. The edit you’ve done for now will get overwritten, so add the post ID value in preparation for the next update. ??

    Plugin Author Design Extreme

    (@designextreme)

    @borrelho This functionality now exists as described in version 3.8.

    You can manually set the post_id (i.e. the ID of the page) as a legitimate value in the options table under “google_business_reviews_rating_structured_data”. Alternatively, use your browser’s inspector to edit the checkbox value from “1” to the post_id number.

    Hi @designextreme sorry to open up this thread but I can’t see where to do this in my version of the plugin. I have version 3.13 installed. Sorry to be a pain. Hope you can help.

    It seems google only likes to put your rating in serps if the schema is on a page other than the homepage so I’d love to be able to add it in to a page. Thanks!!

    • This reply was modified 4 years, 3 months ago by bandboutique.
    Plugin Author Design Extreme

    (@designextreme)

    @bandboutique I didn’t realise that Google prefers the Schema data elsewhere (in particular).

    I’ve added functionality for moderate/advanced users. There are two ways to edit the page where it appears:

    1. Either: edit the value for: google_business_reviews_rating_structured_data in the wp_options table. Set the number to match the ID of the page’s ID.
    2. Or: in the main Setup tab, you can Inspect the value of the Structured Data checkbox to a value other than “1”. Change this to the page’s ID. Submit the settings.

    I am considering a change to how Structured Data is set, with a possibility of removing it altogether if no Search Engine or other service uses this data.

    Let me know how this works for you?

    Hey @designextreme thanks for there reply. Yes sorry mainly for reviews I think it’s not supported on the homepage. I’ve never seen the stars show up in serps on a homepage.

    Sorry so do I have to edit the plugin? I’m a complete amateur – ha!

    Could I also copy and paste the preview of the code from your
    Structured Data section into the header of my site?

    Thanks!

    Chris

    Plugin Author Design Extreme

    (@designextreme)

    @bandboutique This isn’t an novice edit. I’d recommend using PHPMyAdmin to edit the value in the database. Go to your database, then load the options table, here search for the key name. Once found, edit this and set the value to the Page/Post ID (you can see this in the URL of Dashboard | Pages | Edit…).

    Plugin Author Design Extreme

    (@designextreme)

    @bandboutique Oh, and you can always copy/paste the JSON data, but it will remain static, so it doesn’t really offer anything helpful in the long term.

    I recommend adding the page’s ID in the database as detailed. Once set, the ID of the alternative page will remain untouched by the plugin.

    Awesome – thanks for your help!!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘structured data on a service page’ is closed to new replies.