News Hub Method Call Feature

Invoke News Hub via a method call

NewsHub can be invoked via a method call. What this means is that you can design your own button, link, bell icon, etc. on the website and then invoke NewsHub on click. Alternatively, you can also use the method call to invoke News Hub on specific pages as required. The UI/UX of NewsHub remains as is and can be modified as usual from the iZooto panel.

Steps to Enable

1. Initialize iZooto with showNewsHubWidget as false.

<script>
    window._izq = window._izq || []; window._izq.push(["init",{'showNewsHubWidget':false}]);
</script>

2. Add your website-specific JS from the iZooto panel

This is available under Settings > Setup > Install > Step 1 on the iZooto panel.

<script src="https://cdn.izooto.com/scripts/YOUR_SCRIPT_HERE.js"></script>

3. Invoke News Hub as required using the below snippet:

<script>
    window._izq.push(['triggerNewsHub']);
</script>

👍

Done!

News Hub will now be invoked as needed with the click of your own bell icon!!