• Resolved Niek

    (@nvomedia)


    How about an shortcode to add the rich snippet to any place you like instead of the footer of the site?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Niek

    (@nvomedia)

    Ow wait, just found the github repo. Will look to create a pull request

    Plugin Author Albert Peschar

    (@apeschar)

    Thanks for your suggestion. It’s a good idea, although we have no plans at the moment to add this. A PR is welcome.

    Thread Starter Niek

    (@nvomedia)

    I’m not able to make an PR (can’t publish my branch).
    I was actually a very small change:

    Added this function on line 21 in the frontend.php file in /common

    add_shortcode('webwinkel_rich_snippet', function() {
      return $this->get_rich_snippet();
    });

    Which makes the the shortcode [webwinkel_rich_snippet] available.

    • This reply was modified 5 years, 8 months ago by Niek.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Idea: Add shortcode for rich snippets text’ is closed to new replies.