Customizing ArtText styles in themes

ArtText styles allow you to create fancy text headings with special effects like 3D and drop shadows. Using theme overrides, you can customize the available ArtText styles for a particular theme.

Once you enable theme overrides and download the theme files, you'll find an ArtTextTemplates folder containing an ArtTextStyles.cfg file and various other .cfg files. The ArtTextStyles.cfg is the main ArtText configuration file, and it defines the available ArtText styles using <ArtTextStyle> tags.

In the following example, there are two styles defined: Page header 1 and Site subtitle 1.

<ArtTextStyles>
 <ArtTextStyle name="Page header 1">
   <XmlTemplateFilePath>Page-Header-01.cfg</XmlTemplateFilePath>
   <StyleGroup>H1</StyleGroup>
   <CustomizableParameters>
 <PropertyName>TextForeColor1</PropertyName>
 <PropertyName>TextForeColor2</PropertyName>
 <PropertyName>FontName</PropertyName>
 <PropertyName>FontSize</PropertyName>
   </CustomizableParameters>
 </ArtTextStyle>
 <ArtTextStyle name="Site subtitle 1">
   <XmlTemplateFilePath>Site-Subtitle-01.cfg</XmlTemplateFilePath>
   <StyleGroup>SubTitle</StyleGroup>
   <CustomizableParameters>
 <PropertyName>TextForeColor1</PropertyName>
 <PropertyName>TextForeColor2</PropertyName>
 <PropertyName>StrokeColor1</PropertyName>
 <PropertyName>StrokeColor2</PropertyName>
 <PropertyName>FontName</PropertyName>
 <PropertyName>FontSize</PropertyName>
   </CustomizableParameters>
 </ArtTextStyle>
  </ArtTextStyles>

For each style, ArtTextStyles.cfg points to the.cfg files containing the definitions for that style,

<XmlTemplateFilePath>Page-Header-01.cfg</XmlTemplateFilePath>

and identifies the parameters available to the user when formatting text using the ArtText style.

<CustomizableParameters>
  <PropertyName>TextForeColor1</PropertyName>
  <PropertyName>TextForeColor2</PropertyName>
  <PropertyName>FontName</PropertyName>
  <PropertyName>FontSize</PropertyName>
</CustomizableParameters>

Wild Apricot's ArtText feature is based on Neodynamic ImageDraw. The .cfg files referenced by ArtTextStyles.cfg are XML files generated by the ImageDraw component. For instructions on modifying the style definitions in the .cfg files (or creating new ones), see the ImageDraw manual (ZIP file – 4 MB) for more information.

After you have modified or created the configuration files, upload them to your theme's ArtTextTemplates folder under the Theme_Overrides folder on your site from the Files screen or using WebDAV, then rebuild your theme.

Search: WildApricot.com 

About results ( seconds) Sort by: 
Sorry, an error occured when performing search.
Powered by Zendesk