How to add Elfsight widget to Laravel website

To add Elfsight widget to your Laravel website, you need the installation code. Here is an article that explains where to get it - Where to get Elfsight widget installation code.

If you are a New Dashboard user, you can find the installation code of your widget following the steps described in this article - Where to get Elfsight widget installation code (new dashboard).

In this article

  1. Adding inline widgets to specific page (home page, contact, etc.)
  2. Adding floating widgets to all pages

Adding inline widgets to specific page

1
Go to the admin panel of your Laravel website's hosting
Log in to the admin panel of your website's hosting and find your file manager.

Note:

To find out the location of your file manager and Laravel project, please contact your hosting provider.

For this article, we will use Elasticweb hosting.

To find the file manager in Elasticweb hosting, click Nodes tab (1) and choose Node file manager (2):

2
Open your Laravel project
In our case, the Laravel project is located in the domains folder:

Then click on your Laravel project:

3
Find the pages for customization
To do it, you need to go to the resourcesviews folder:
4
Paste the installation code
Click Edit next to the needed page:

Note:

All the names of the files may be different for each website. We take the page contact.blade.php as an example.

You need to choose the page where you want to install the widget.

Add the installation code to the place where you want to see the widget:

You have successfully added your Elfsight widget to a specific page of your Laravel website!

Adding floating widgets to all pages

1
Go to the admin panel of your Laravel website's hosting
Log in to the admin panel of your website's hosting and find your file manager.

Note:

To find out the location of your file manager and Laravel project, please contact your hosting provider.

For this article, we will use Elasticweb hosting.

To find the file manager in Elasticweb hosting, click Nodes tab (1) and choose Node file manager (2):

2
Open your Laravel project
In our case, the Laravel project is located in the domains folder:

Then click on your Laravel project:

3
Find the pages for customization
To do it, you need to go to the resourcesviews folder:
4
Paste the installation code
Click Edit next to the root file:

Note:

In our specific example, there is a main.blade.php file, which is the root for all other pages of the site.

Find your root folder and paste the installation code.

Add the installation code after the opening <body> tag:

You have successfully added your Elfsight widget to all pages of your Laravel website!

Did this article answer your question? Share your feedback: Thanks for sharing your feedback. It helps us grow! There was a problem submitting your feedback. Please try again later.

Still looking for assistance? Contact Us Contact Us