HTML

From Search+ Wiki
Jump to navigation Jump to search

Installation in HTML pages requires 3 simple steps:

I - Log in or create a new profile and obtain access token

1. Log in or create a profile by clicking "Login" at the product's website or navigating to https://searchplus.pro/customer.

Website.png

If you do not have a profile yet, you have to sign up.

Login.png

We require as less details as possible, so filling the registration form should take a minute.

Signup.png

2. You have to subscribe to the service (yes, there is a FREE tier - no payments are required) via the customer portal - https://searchplus.pro/customer/. Please keep the tab open, you will need the token information from it.

Profile.png


3. You have to subscribe to the service (yes, there is a FREE tier - no payments are required) via the customer portal - https://searchplus.pro/customer/. Please keep the tab open, you will need the token information from it.

Profile.png

II Link the page to the service

4. Edit your page and insert the following line at the bottom of the <head> section of your index.html file

<script src="https://searchplus.pro/package/sp.js" crossorigin="anonymous"></script>

The result should be looking like this:

Html js include.png

5. Edit your page and add the Serach+ initialization code at the bottom of the <body> section

SP.init('[INSERT YOUR TOKEN HERE]');

Replace [INSERT YOUR TOKEN HERE] with the token from the account's profile page.

The result should be looking like this:

Html js init.png


Congratulations, now you are set and ready to go!