To insert a scrolling testimonial widget on your website such as the home page. Follow the steps below.

Step 1: Go to Modules >> Dynamic Templates

Step 2: Create Template

Step 3: Set the Name to Testimonials Carousel

Step 4: Click the blue button Add Variable, then set the Name to Reviews

In the "Default Query" text box type:

App\Models\Review::query()
->where('approved', 1)
->inRandomOrder()
->limit(5)
->get()

Step 5: In the template, download the file below and copy and paste the code over.

Download Template Code

Updated the page to save all changes.

Step 6: Then click "Create Shortcode" button in the right column.

In the Name text field type "Default" or desired name. Leave the rest of the options as they are and click Save.

Step 7: It will take you back to the previous page and you will now see the "Default" shortcode that was generated. Copy that shortcode and paste it in the page content where you want the carousel to display.

Example of the testimonial carousel:

Adjust styles as need in the "Styles" section of that dynamic template using CSS"

 

Building Relationships with Web Developers and Marketing Agencies that want better results

The world's fastest and most SEO friendly website code.