• Resolved crwhntt

    (@crwhntt)


    Hi,

    I am getting this on the testing tool: http://prntscr.com/kss2sj

    As I saw on the documentation, I am using this code snippet to add the image:

    add_filter( ‘site-reviews/schema/LocalBusiness’, function( array $schemas ) {
    $schema[‘image’] = ‘https://perrosadopcion.com/wp-content/uploads/2018/08/favicon.png’;
    $schema[‘name’] = ‘Animales en adopción’;
    return $schemas;
    });

    But nothing is happening. I mean, I have more snippets working, functions.php is working.

    Isn’t this the way to go?

    Hope to hear from you soon.

    Regards

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    1. Add a featured image to your page.
    2. Or, add a default image in the Site Reviews schema settings.
    3. Or, use the snippet in your functions.php file. The reason it is not working for you is because you are adding values to $schema (which doesn’t exist) and returning $schemas which is where you should be adding the values to.

    • This reply was modified 7 years, 8 months ago by Gemini Labs.
    Thread Starter crwhntt

    (@crwhntt)

    Solved! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add image to schema’ is closed to new replies.