Defining a Client-Side Factor in Standard Mode
To define a Client-Side Factor:
- Start by creating a Factor as described in the topic Creating a Factor.
- When you come to the section that describes the Variation Template, select Client-Side Factor and continue here.
When you select Client-Side Factor in the Variation Template area of the Factor page, the following fields are available to you:
Selector – Enter the name of a CSS Selector. When a page component matches this Selector, SiteSpect applies the settings in the Changes section defined for the Variation.
HTML Replacement – Replaces the HTML content of the selected components.
Attributes – Replaces the Attribute with the specified value if the Attribute exists. If the Attribute does not exist, this adds it. Enter the name of the Attribute on the left side of the field and the Value on the right side.
CSS – Replaces the CSS rule with the specified value if the rule exists. If the CSS rule does not exists, this adds it. Enter the rule on the left side of the field and the value on the right. Note that if there is an !important rule, this won't override it unless this rule is also !important.