> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.nector.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to open the widget dynamically?

If you want the widget to be opened dynamically, **Nector** presently offers 3 different methods. They are discussed in detail below

### By calling a function

* `window.showNectorRewards()` - We can call this function to show the Nector Rewards widget

![](https://storage.crisp.chat/users/helpdesk/website/d9947dc4cf2ed000/image_1wxohy2.png)

* `window.hideNectorRewards()` - Similarly we can call this function to hide the Nector Rewards widget

These functions can be called from anywhere in the website using javascript

### By adding the hash value to the URL 

* `#show-nector-rewards` - By adding this to the URL, we can enable showing the widget on the screen

|| Example:  https://the-nector-store.myshopify.com/#show-nector-rewards

![](https://storage.crisp.chat/users/helpdesk/website/d9947dc4cf2ed000/image_1jnohgd.png)

* `#hide-nector-rewards` - By adding this, we can hide the widget from the screen

### By adding a query param to the URL

* `shownector=true` - We can add this param to enable showing the widget on the screen  

|| Example: https://the-nector-store.myshopify.com/?shownector=true

![](https://storage.crisp.chat/users/helpdesk/website/d9947dc4cf2ed000/image_nht6fw.png)

* `shownector=false` - By adding this, we can hide the widget from the screen

| If you have further queries regarding this, you can always contact us at support@nector.io





