2

From https://www.regularlabs.com/extensions/sourcerer/tutorial: Sourcerer already creates the $document (or $doc) object for you when it is needed. So you do not have to initialize this yourself. {source} <?php if (true) { $style = '.item-135 {display: none;}'; $doc->addStyleDeclaration($style); } ?> {/source} I would ...


Only top voted, non community-wiki answers of a minimum length are eligible