Clone wiki

Shortcode Ultimate V2 / Inner API / addString()

To add string of css or js in head tag, you can use addString() function.



    suAsset::addString('css',  '.su-heading { font-size: 10px;}');

    suAsset::addString('js',  'jQuery(document).ready(function ($) {});');



Param Name Type Description
css/js string You can put here only css or js. "css" for adding any css string and "js" for adding javascript string in head tag.
string string put you custom css or js code.