Tutorials > Customize the Consumer Direct sample store > Add style options
Add style features to the feature repository
In this step of the tutorial, we will add the style features to the feature repository.
- Navigate to the following directory:
- WC_eardi../images/locale/screensnap/Stores.war/WEB-INF/xml/tools/stores/ConsumerDirect/devtools/flow/repository
- workspace_dir\Stores\Web Content\WEB-INF\xml\tools\stores\ConsumerDirect\devtools\flow\repository
- Open the Features.xml file for editing.
- Locate the style section of the file by searching for the following string:
<!-- Features for style -->
- Observe that feature with the ID Style.f.3 has been provided for you and therefore no modifications to this section are necessary.
- Locate the color section of the file by searching for the following string:
<!-- Features for stylesheets and image directories-->
- Add the following elements to the end of the section:
<feature enables="vfile.style13.css vfile.color1.dir"/> <feature enables="vfile.style14.css vfile.color2.dir"/> <feature enables="vfile.style15.css vfile.color3.dir"/> <feature enables="vfile.style16.css vfile.color4.dir"/>Observe that the elements reference existing virtual file implementations for the color image directories.
- Save and close the file.
- Open the IncludePages/StyleDir.xml file for editing.
- Add the following element within the page-components element (if it is not already present):
<simple-implementation url="include/styles/style3/" virtual-page-interface- />
- Save and close the file.
- Open the VirtualPages.xml file for editing.
- Locate the section specifying virtual style sheet implementations by searching for the following string:
<virtual-file />
- Add the following virtual-file-implementation elements to the end of the section:
<virtual-file-implementation virtual-file- url="css/Master3_1.css" /> <virtual-file-implementation virtual-file- url="css/Master3_2.css" /> <virtual-file-implementation virtual-file- url="css/Master3_3.css" /> <virtual-file-implementation virtual-file- url="css/Master3_4.css" />
- Save and close the file.