Skip to content

BuildFire MetaTags

o5faruk edited this page May 2, 2021 · 8 revisions

⚠️⚠️⚠️

This sdk documentation is deprecated and will not be updated. Check out our new docs at https://sdk.buildfire.com/docs/meta-tags/

⚠️⚠️⚠️

BuildFire MetaTags

There are different functionalities which affect your widget index page and it may be useful in your case by adding an HTML Meta Tags with name buildfire like the following :

 <meta name="buildfire" content="disableTheme"> 

Meta tags must be added to the head of the HTML document before buildfire.min.js is referenced


Here is a list of the available Meta Tags and the functionality for each :

  • disableTheme : by adding this meta tag your html page will not be affected by the whole app theme which has been selected by the app owner. (If still wish to obtain the theme settings, but not the actual CSS, you can utilize the buildfire.appearance.getAppTheme function.)
 <meta name="buildfire" content="disableTheme"> 

  • disableBootstrap : by adding this meta tag your html page will not be affected by bootstrap styling.
 <meta name="buildfire" content="disableBootstrap"> 

  • disableFastClick : by adding this meta tag the functionality for the fastclick.js library will not be applied to your html page . for more information about fastClick.js please check https://github.com/ftlabs/fastclick
 <meta name="buildfire" content="disableFastClick"> 

  • disableExternalLinkOverride : by adding this meta tag all the anchor elements in your page will not be opened through InAppBrowser plugin instead it will allow the anchor element to be open in the standard cordova webview . for more information about InAppBrowser plugin please check https://github.com/apache/cordova-plugin-inappbrowser.
 <meta name="buildfire" content="disableExternalLinkOverride"> 

  • enableMDTheme : by adding this meta tag default app theme styles will be disabled (disableTheme & disableBootstrap) and material design theming styles will be injected instead. for more info please refer to Material Design Theme Wiki
 <meta name="buildfire" content="enableMDTheme"> 

Note

If you need to use a combination of BuildFire meta tags you have to do it like the following and not adding multiple BuildFire meta tags to your page :

 <meta name="buildfire" content="disableTheme,disableFastClick">
Clone this wiki locally