Customising your eConsult banner
Change how the eConsult dynamic banner looks and behaves on your practice website. Each option below is a ready-to-use snippet: send it to your web provider.
Banner options
Set the overlay parameter to false, or remove it entirely. This snippet creates a banner without the overlay.
<!-- eConsult banner code START -->
<script type="text/javascript">
var eConsultHost = (("https:" == document.location.protocol) ? "https" : "http");
document.write(decodeURIComponent("%3Cscript src='" + eConsultHost + "://s3.eu-west-2.amazonaws.com/cdn.econsult.health/banner/embeddedBanner-2.0.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<div id="eConsultDefaultTarget"></div>
<script language="javascript">
var eConsultParams = {overlay: false};
showBanner(eConsultParams);
</script>
<!-- eConsult banner code END -->
Use the target parameter to give the ID of the banner's parent element. In this example the banner appears inside the #contentMain element.
<!-- eConsult banner code START -->
<script type="text/javascript">
var eConsultHost = (("https:" == document.location.protocol) ? "https" : "http");
document.write(decodeURIComponent("%3Cscript src='" + eConsultHost + "://s3.eu-west-2.amazonaws.com/cdn.econsult.health/banner/embeddedBanner-2.0.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<div id="eConsultDefaultTarget"></div>
<script language="javascript">
var eConsultParams = {
overlay: true,
target: 'contentMain'
};
showBanner(eConsultParams);
</script>
<!-- eConsult banner code END -->
Use the heading parameter to change the "Contact our doctors online" text of the main banner header.
<!-- eConsult banner code START -->
<script type="text/javascript">
var eConsultHost = (("https:" == document.location.protocol) ? "https" : "http");
document.write(decodeURIComponent("%3Cscript src='" + eConsultHost + "://s3.eu-west-2.amazonaws.com/cdn.econsult.health/banner/embeddedBanner-2.0.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<div id="eConsultDefaultTarget"></div>
<script language="javascript">
var eConsultParams = {
overlay: true,
heading: 'Try something new - contact us online!'
};
showBanner(eConsultParams);
</script>
<!-- eConsult banner code END -->
Use the strapline parameter to change the text "Fill out a simple online form to get advice and treatment within 1 working day".
<!-- eConsult banner code START -->
<script type="text/javascript">
var eConsultHost = (("https:" == document.location.protocol) ? "https" : "http");
document.write(decodeURIComponent("%3Cscript src='" + eConsultHost + "://s3.eu-west-2.amazonaws.com/cdn.econsult.health/banner/embeddedBanner-2.0.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<div id="eConsultDefaultTarget"></div>
<script language="javascript">
var eConsultParams = {
overlay: true,
strapline: 'This great new service is now available to all registered patients'
};
showBanner(eConsultParams);
</script>
<!-- eConsult banner code END -->
Set the displayConditionList parameter to false to hide the list of common conditions.
<!-- eConsult banner code START -->
<script type="text/javascript">
var eConsultHost = (("https:" == document.location.protocol) ? "https" : "http");
document.write(decodeURIComponent("%3Cscript src='" + eConsultHost + "://s3.eu-west-2.amazonaws.com/cdn.econsult.health/banner/embeddedBanner-2.0.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<div id="eConsultDefaultTarget"></div>
<script language="javascript">
var eConsultParams = {
overlay: true,
displayConditionList: false
};
showBanner(eConsultParams);
</script>
<!-- eConsult banner code END -->
You can customise the eConsult banner by supplying your own CSS. Contact us for more details.
In almost all cases the banner script uses the practice website address (origin domain) to find a matching eConsult record and display the banner automatically.
In some rare cases you may need to include the bannerId parameter, for example to try the banner on a test site, or when several practice websites point to one eConsult site. Your bannerId must match your eConsult URL prefix, for example "myclinic" in "myclinic.webgp.com". Contact us if you have trouble getting the banner to display.
<!-- eConsult banner code START -->
<script type="text/javascript">
var eConsultHost = (("https:" == document.location.protocol) ? "https" : "http");
document.write(decodeURIComponent("%3Cscript src='" + eConsultHost + "://s3.eu-west-2.amazonaws.com/cdn.econsult.health/banner/embeddedBanner-2.0.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<div id="eConsultDefaultTarget"></div>
<script language="javascript">
var eConsultParams = {
overlay: true,
bannerId: 'myclinic'
};
showBanner(eConsultParams);
</script>
<!-- eConsult banner code END -->
If you add the banner code before your eConsult site has launched, the banner shows a "Coming soon" message. To test the full banner before you go live, set the bannerId parameter to "DEMO_MODE".
<!-- eConsult banner code START -->
<script type="text/javascript">
var eConsultHost = (("https:" == document.location.protocol) ? "https" : "http");
document.write(decodeURIComponent("%3Cscript src='" + eConsultHost + "://s3.eu-west-2.amazonaws.com/cdn.econsult.health/banner/embeddedBanner-2.0.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<div id="eConsultDefaultTarget"></div>
<script language="javascript">
var eConsultParams = {
overlay: true,
bannerId: 'DEMO_MODE'
};
showBanner(eConsultParams);
</script>
<!-- eConsult banner code END -->