• Resolved locacreative

    (@locacreative)


    Hello everyone,

    First of all, thank you for this plugin. It’s very cool.

    I would like to know if it’s possible to display the review on a carousel/ slider ?

    Thank you in advance for your answer.

    Loredana

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

    (@geminilabs)

    Site Reviews does not provide this feature. You will either need to use a carousel /slider plugin that can accept a shortcode as the slide text, or code it yourself using the Site Review helper functions.

    1. To use the shortcode with a slider plugin:

    Slide #1: [site_reviews count=1]
    Slide #2: [site_reviews count=1 offset=1]
    Slide #3: [site_reviews count=1 offset=2]
    Slide #4: [site_reviews count=1 offset=3]
    etc.

    2. To manually code the carousel yourself:

    if( function_exists( 'glsr_get_reviews' )) {
        // See the Site Reviews "Helper Functions" documentation for more information
        $reviews = glsr_get_reviews();
    
        foreach( $reviews as $review ) {
            // use the $review object to build your slide html.
            // You can use glsr_debug( $review ); to see the available values
            // Use glsr_resolve( 'Html' )->renderPartial( 'star-rating', ['rating' => $review->rating] ); to render the star rating
        }
    }
    • This reply was modified 6 years, 12 months ago by Gemini Labs.
    • This reply was modified 6 years, 12 months ago by Gemini Labs.
    • This reply was modified 6 years, 12 months ago by Gemini Labs.
    • This reply was modified 6 years, 12 months ago by Gemini Labs.
    Plugin Author Gemini Labs

    (@geminilabs)

    I haven’t heard back from you in over a week so I will mark this as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display review on a carousel slider’ is closed to new replies.