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

    (@designextreme)

    @shroomers88 The plugin can add to existing Structured Data without a problem and more than one is permitted per page.

    Just checking that the “home page” listed in the main WordPress settings matches the page you’re checking with the Google Structured Data testing tool? The Structured Data will only appear once, in the home page and not elsewhere.

    Thread Starter shroomers88

    (@shroomers88)

    @designextreme yes, the home page (the page I testing in Google’s tool) is listed in the main WordPress settings.

    Here’s a screenshot : https://www.screencast.com/t/N1qTPQgo6i3k

    What else can be wrong?

    Plugin Author Design Extreme

    (@designextreme)

    @shroomers88 The Structured Data is placed in the <head> of the page as an inline JSON string.

    Are there plugins that combine and compress scripts/styles?

    If so, then the Structured Data may be unreadable. I would recommend checking the settings and unsetting this option – then retrying the test. If that is it, then you can probably set an exemption for the Structured Data.

    Let me know how this goes (or if this is not the case)?

    Thread Starter shroomers88

    (@shroomers88)

    @designextreme I’ve turned off Autoptimize, BJ Lazy Load and WP Fastest Cache which are all susceptible of combining and/or compressing scripts/styles. Then I’ve cleared cache from the CDN, the server and WP, but the plugin still doesn’t output the schema.

    Plugin Author Design Extreme

    (@designextreme)

    @shroomers88 I’ve checked the source code of the page and no Structured Data exists from the Google Business – Reviews and Rating plugin. I’ve also run your source code through https://www.10bestdesign.com/dirtymarkup/ just to confirm – and no reference at all. The Google Structured Data tool also bears this out. Another plugin is outputting some Structured Data relating to its price range, address, location and opening hours (although these are not formatted well).

    The Structured Data will output when the following is true:

    1. The plugin is enabled
    2. Demo mode is not active
    3. The API Key and Place ID are set and receiving valid data
    4. Structured Data is enabled (in the main Setup tab)
    5. Some data is set here relating to Structured Data, although it will display even if errors exist. Check the Preview for details as needed.
    6. The current page is recognized as the home page according to WordPress

    I think that another plugin or theme or similar is interfering with the core WordPress functionality (e.g. add_action('wp_head', 'function_name_for_structured_data');). I can only see the output of the page, so it’s hard to give any definitive answers here. However, I doubt the problem lies with this plugin, rather something else that’s preventing this [wp_head] action from being run properly.

    Plugin Author Design Extreme

    (@designextreme)

    @shroomers88 Solved! In the index.php file, line 2591 change:

    !is_home()

    to:

    !is_front_page()

    I’ll updated this function reference in the next version of the plugin.

    Thread Starter shroomers88

    (@shroomers88)

    @designextreme thank you so much for your help! It is highly appreciated ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Rich snippet not working’ is closed to new replies.