Store
Community Documentation

v3 Knowledgebase

The basics to create a Theme/Style

1- Lets use the sample theme that come with our phpfox script
rename it to something else
Lets call it "diamond" - So this is a whole theme folder called Diamod and we are gonna make 2 styles inside of it.2-Duplicate the style folder "sample" one more time so wee will have 2 styles.3-Name the first stile "green" and the second style "blue"
So now we have 2 style inside the Diamond theme.4- Open Diamond/phpfox.xml with dreamweavr or notepad
Make the setting like this:
HTML:
<theme>
	<name>Diamond</name>
	<folder>diamond</folder>
	<created>0</created>
	<creator>JaneLu</creator>
	<website>http://JaneLu.com/</website>
	<version>V2</version>
	<parent>default</parent>
</theme>
5- Now open diamond/Style/blue/Phpfox.xml and add this info:
HTML:
<style name="Blue" folder="blue" parent_style="default::default" parent_theme="diamond" created="0" logo_image="logo.png">
	<creator>JaneLu</creator>
	<website>http://JaneLu.com/</website>
	<version>V2</version>
</style>
6- Now do the same to Diamond/Style/green/Phpfox.xml and add this info:
HTML:
<style name="Green" folder="green" parent_style="default::default" parent_theme="diamond" created="0" logo_image="logo.png">
	<creator>JaneLu</creator>
	<website>http://JaneLu.com/</website>
	<version>V2</version>
</style>
Note that if the folder name is in small letter so the info in the line folder="green" must be in small letter
Correct:
HTML:
<style name="Green" folder="green" parent_style="default::default" parent_theme="diamond" created="0" logo_image="logo.png">

Not correct
HTML:
<style name="Green" folder="Green" parent_style="default::default" parent_theme="Diamond" created="0" logo_image="logo.png">
7- upload the entire theme with the 2 styles in it. to themes/frontend8- Go to admincp Extensions/Themes/Import Themes.
Once you import the theme with the styles already in it there is not need to import style as it was already imported with the theme importation. You will only need to import a Style, if you created a new Style into a theme the was already imported.Hope it helps.