• Resolved sajahsdesignstudio

    (@sajahsdesignstudio)


    In the backend I unchecked the title option, but I wanted to know if could pre-set a title for reviews?

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

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

    (@geminilabs)

    You can do this with a code snippet like this:

    add_filter('site-reviews/config/forms/review-form', function (array $fields): array
    {
    if (isset($fields['title'])) {
    $fields['rating']['title'] = 'Pre-set title';
    }
    return $fields;
    });
    Thread Starter sajahsdesignstudio

    (@sajahsdesignstudio)

    Can I customize different forms to have a title? Or this works generally? Where would I put this code?

    Plugin Author Gemini Labs

    (@geminilabs)

    The code snippet I provided changes the title value for the default review form. Use the Code Snippets plugin to add the PHP code snippet to your website.

    If you need to customize multiple review forms with different fields, there is also the Review Forms addon.

    Thread Starter sajahsdesignstudio

    (@sajahsdesignstudio)

    Okay, thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.