Installing Rozz on your website

Rozz is easy to install on your website, either via HTML or a WordPress plugin.

<code><script src="https://rozzum-bucket.rozz.site/rozz-searchbox.js"></script></code>

Add the rozz-searchbox tag to your HTML, configuring its various parameters using attributes. An example is shown below:

<code><rozz-searchbox initial-status="closed" theme_color="blue"></rozz-searchbox></code>

The initial-status attribute controls whether the searchbox is open or closed by default.

data-initial-status="closed" <!-- default option where the search bar is closed, button to open it is displayed -->
data-initial-status="open" <!-- search bar is open by default but can be closed -->
data-initial-status="static" <!-- search bar is open by default and cannot be closed -->
data-initial-status="link" <!-- search bar is closed by default and opened with a custom HTML element -->

You can place the searchbox inside a div or a flex container. In a flex container, align and justify properties can help in positioning the searchbox more precisely.

Download the plugin from Rozz Searchbox Plugin.

In your WordPress dashboard, navigate to ‘Plugins’ > ‘Add New’ > ‘Upload Plugin’. Choose the downloaded file and install it.

Activate the plugin once installed.

Place the following shortcode where you want the searchbox to appear:

<code>[rozz-searchbox]</code>

Add attributes to the shortcode to configure the button as you like.


Posted