Support » Plugin: Site Reviews » Can’t hide the title in the submit form

  • Resolved nevaljawko

    (@nevaljawko)


    Hey!
    Unfortunately I can’t hide the title in the submittion form.
    I’ve tried to use hide=”title” in the [site_reviews_form] shordcode but it doesn’t work.
    Will try to disable it as required and hide it via CSS.

    Regards,
    Pavel

Viewing 5 replies - 1 through 5 (of 5 total)
  • BTW, firs I would like to not display “No Title” words if user didn’t live its title. Would be just great.

    Sorry, it was my fault. I duplicated the “hide” attr…
    But No Title is quite pain for me. I found a solution with pasting & nbsp; for No Title translation but now reviews without title have a space at the top.

    • This reply was modified 2 years, 6 months ago by nevaljawko.
    Plugin Author Gemini Labs

    (@geminilabs)

    1. If you are trying to hide the review title field in the submission form, this is how you do it:
    [site_reviews_form hide="title"]

    However, note that if you hide the title field in the submission form, you may also want to hide the titles when you display the reviews otherwise all reviews will have a “No Title” title. This is how you do that:
    [site_reviews hide="title"]

    2. Please review the complete shortcode documentation on the Site Reviews “Get Help” page for more available shortcode options.

    Thanks.

    • This reply was modified 2 years, 6 months ago by Gemini Labs.
    Plugin Author Gemini Labs

    (@geminilabs)

    Alternatively, in the case that you have removed the title field requirement and would like to show the review titles only if they exist, you can use the following filter hook in your active theme’s functions.php file:

    /**
     * Remove the review title if it has not been set
     * @return string $title
     */
    add_filter( 'site-reviews/reviews/review/title', function( $title, $review ) {
        return $review->title != 'No Title'
            ? $title
            : '';
    }, 10, 2 );
    
    • This reply was modified 2 years, 6 months ago by Gemini Labs.
    Plugin Author Gemini Labs

    (@geminilabs)

    I have not heard back from you on this topic for a week, so I’m assuming this issue has been resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t hide the title in the submit form’ is closed to new replies.