• Resolved berttervoert

    (@berttervoert)


    I’m working on a page to show a single recipe. I got almost everything figured out, but the rating stars are not showing. I have them enabled on the settings page, but they don’t show up on the comment form.
    Am I forgetting something?

    Bert.

    PS. I’m still working on localhost with a minimum of plugins:
    WPRM
    Debug bar
    Gutenberg
    Show current template

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Brecht

    (@brechtvds)

    Hi Bert,

    You could try the legacy mode for the comment star position on the settings page.

    If that doesn’t work, try switching to a default theme (like Twenty Seventeen) and see if the stars show up then. If they do, then your current theme is not following WordPress standards for outputting the comment form.

    Thread Starter berttervoert

    (@berttervoert)

    I’m using a custom template part to show a single recipe. I use a child theme of the fooding theme. I altered the single.php file so it checks wether the post has a tag ‘recipe’ an if so it selects my custom content-single-recipe.php template part to construct the recipe.

    So selecting legacy mode is going to work in my case. When I select the fooding theme, it does show the rating stars. But the child theme uses the comments.php file from the fooding theme, so shouldn’t that part be the same then?

    Plugin Author Brecht

    (@brechtvds)

    Hard to say without looking at the code. Is the recipe shortcode part of the post content or are you completely custom coding this?

    Feel free to email us at [email protected] with some example code.

    Thread Starter berttervoert

    (@berttervoert)

    I’ve send an email.

    Thread Starter berttervoert

    (@berttervoert)

    .

    Plugin Author Brecht

    (@brechtvds)

    In case anyone else ends up here: the problem was because of a custom built template that did not have the wprm-recipe-container class for the surrounding container.

    Because of that the stars get hidden in the form as if there was no recipe on the page.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘rating stars not showing’ is closed to new replies.