WordPress.org

Ready to get started?Download WordPress

Forums

All In One Schema.org Rich Snippets
[resolved] Snippet appears in listings (4 posts)

  1. bowlerofadown
    Member
    Posted 1 year ago #

    I have a couple issues with the generated code that the plugin makes for the recipe rich snippets to be picked up. I'm hoping someone can offer some advice on it.

    1. It appears on my listings and categories and just looks bad. I am using the MORE tag and yet it still puts the rich snippets on there. You can see it here: http://www.kawaiigourmet.com/. I can understand why it has to be on the individual post but it should be able to be hidden on the listings.

    2. The formatting wraps for the ingredient list instead of dropping down to the next line so what I get is a wall of text that is very difficult to read.

    Is there anything I can do to fix this?

    http://wordpress.org/extend/plugins/all-in-one-schemaorg-rich-snippets/

  2. Sujay
    Member
    Plugin Author

    Posted 1 year ago #

    Hello bowlerofadown,

    Thanks for getting in touch and descriptive elaboration of your issue. Please take steps as below in order to get the fixed -

    Regards!

    _______

    Solution -

    1. Go to plugins -> editor and select All in One Schema.org Rich Snippets from dropdown

    2. Locate the functions.php file for editing

    3. Find and replace the following line (to remove rich snippets box from listings/archives)

    return $recipe;

    with

    return (is_single())? $recipe : $content;

    4. Find and replace the following line (to display ingredients in a structure)

    $recipe .= '<strong>Ingredients Used : </strong>'.$recipes_ingredient.'<br/>';

    with

    $recipe .= '<strong>Ingredients Used : </strong><pre>'.$recipes_ingredient.'</pre><br/>';

    5. Update the file.

  3. bowlerofadown
    Member
    Posted 1 year ago #

    Thank you, this worked. I will open up a new question for something else I would like help with.

  4. Sujay
    Member
    Plugin Author

    Posted 1 year ago #

    Great.

    Today, we are releasing new update of the plugin many new features. Please update the plugin and enjoy customization settings we have provide to control look for your front end display.

    P.S - If you could post your review it will help other users as well :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic