Overview
How to Integrate Frontnow Advisor to Your Website: A Step-by-Step Guide
Initialization Code
<!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
<!-- Your website content here -->
<div id="advisorContainer"></div>
<!-- Include Frontnow Advisor library at the end of <body> -->
<script src="https://cdn.frontnow.site/advisor.js"></script>
<script>
// Initialize Frontnow Advisor
const advisor = new Advisor({
name: "Frontnow Advisor",
subdomain: "YOUR_ADVISOR_SUBDOMAIN", // or: customDomain: "advisor.yourdomain.com"
mode: "embedded", // default: sidebar
target: "#advisorContainer",
language: "en",
colorScheme: {
primary: "#000000",
secondary: "#ffffff",
tertiary: "#ff0000"
}
});
// Handle events from the Frontnow Advisor
advisor.on("init", function () {
console.log("Advisor initialized");
});
</script>
</body>
</html>Add HTML Element (Embedded Mode)
Loading Asynchronously
Was this helpful?