Adding a testimonial widget with code

Hi, team

I want to add a testimonial widget to my website but I don’t know how to install the code.

Can you please guide me?

Best Regards



Hey,

First part of code (link & script) you should paste inside of custom code inside of admin panel, best is to paste it in “Head End”.

And then for second part of code, its best to create a JS file in custom files, with event pageOnReady, just inside of that file, you need to paste only code which is inside of , you dont need to write in that file.

image

And then lastly, create a div where you want to load your testiomoains and give it ID “justreview-testimonials” . To set an ID to div, you can select a div, go to the settings tab, and on top right, you will see + icon, and from there you will see ID option.

image

1 Like

Thanks a lot @Pakic

It doesn’t work

I have tried 2 times

Please take a look when you can

https://healing-space.divhunt.art/

Hi Stefan

Up :kissing_heart:

Can you please check how to configure it right?

Fixed.
You don’t need to start file with <script>.

Are you sure that it is the only problem?

I have edited it to have a new code without the at the beginning and it still doesn’t work.

line 2, and last line should be deleted. I already did that before for you, and it was working

Ok, it works perfectly now.

Just for the record

At the beginning of the file, I deleted:

document.addEventListener(‘DOMContentLoaded’, function() {

At the bottom of the file, I deleted:

});

Thanks, maestro :kissing_heart:


1 Like