General

Files

Methods

tidioRWD.create

The tidioRWD.create metod is responsible for defining the most Essentials elements of a mobile page, i.e.

tidioRWD.create(data)

logo

The variable is responsible for displaying a logo in the mobile version of the website, the logo and its path may be defined:

{
    : {
        type: 'image',
        url: 'http: //capwaste.co.uk/wp-content/themes/twentytwelve/images/grh/.png' // The logo path is defined here    }
}

menu

The variable is responsible for displaying a menu in the mobile version of the website. The most important function is defining the link list. The list can be defined in two ways:

1. Picking the links with the help of the selector.

{
    menu: {
        link_list: '#-top'
    }
}

2. Providing the list in the JSON format.

{
    menu: {
        link_list: [
            {
                text: 'Link1',
                url: '#'
            }
        ]
    }
}

remove_stylesheet

Importing CSS sheets from the original version of the website is a very good option, but there are cases where such a solution does not work. In such a case, change the “remove_stylesheet” to “true”. When the variable is set to true all CSS styles are removed from the site and only styles defined by the developer will be displayed.

{
    {
        remove_stylesheet: true
    }
}

remove_table

If a website is based upon tables that do not work properly in the mobile version, use the “remove_table” variable that is responsible for removing tables from the mobile version.

{
    {
        remove_table: true
    }
}

import_css

While loading Tidio RWD the default CSS file is view.css, but if more such files are to be loaded, use the “import_css” variable.

{
    {
        import_css: true
    }
}