header/XXXXXX ( XXXXXX is replaced with a color such as green or blue )

+

style.css

+

images/

+

vdot2.gif

+

opaque.png

+

icon-search.gif

+

header-mask.png

+

</pre>}}

+

+

#To add a color scheme first create a directory styles/header, named for your new color scheme such as white or grey.

+

#Copy the contents of one of the other colors scheme directories such as blue to your new directory.

+

#Copy the three user-XXXX.png files from templates/ja_purity/images to templates/ja_purity/styles/header/grey/images for a grey scheme. If you're using the tutorial version the directory is my_japurity.

+

#Normally you'd be able to edit the CSS in the Joomla Administration area but that isn't an option in this case. So you'll need to edit the file directly in your choice of plain text editors such as VI or Notepad. Edit the style.css file to match your new color scheme. For instance the following changes will make a readable set of colors for a grey scheme (using the copied blue style.css):

+

#Change all instances of #006699 to #CCCCCC (near lines 2,37,115 )

+

#Change all instances of #C3DFED to #444444 (near lines 3,11,15,28,38,50,83,90,107,116)

+

#Change all instances of #1E7CAB to #BBBBBB (near lines 19,29)

+

#Add the following to the style.css file to color the Spotlight h3 tags

+

#:<pre>

+

#: #ja-botsl h3 {

+

#: color: #000000;

+

#: }

+

#:</pre>

+

#Modify the header-mask.png to match your color scheme in your favorite graphic editor. You'll want to use a gradient tool from transparent to foreground color.

+

#Modify the other graphics, vdot2.gif, user-XXXXX.png and icon-search.gif for readability in your new scheme

+

#Lastly you'll need to hack the ja_templatetools.php file to change the genToolsMenu method to look like the following

#Go to the Joomla Administration for your site and select the new color for your header in the Template Manager

+

#You should get something similar to this when finished...

+

[[Image:JA Purity Tutorial Header Grey.png|640px]]

−

To add a new color scheme:

−

<OL>

−

<LI>Create a new directory under /ja_purity/styles/header called by your color's name (i.e. gray).</LI>

−

<LI>Copy all the contents (including sub-directories) of one of the other directories (i.e. blue) into this directory.</LI>

−

<LI>Edit the style.css file to have the colors you want. For instance the following changes will make a readable set of colors:</LI>

−

#006699 -> #CCCCCC;

−

#C3DFED -> #444444;

−

#1E7CAB -> #BBBBBB.

−

<LI>Edit the images to make them the colors you want.</LI>

−

<LI>Select the color for your new directory in the template manager.</LI>

−

</OL>

Remember to refresh. reload, etc. to get the colors to show up.

Remember to refresh. reload, etc. to get the colors to show up.

−

<noinclude>

+

Note: If you enable Horizontal Menus then you'll need to [[Customising the JA Purity template/customisations/Modifying the horizontal menu colour|change the color of the Horizontal Menus]] as well.

−

[[Category:Beginners]]

+

−

[[Category:JA Purity template]]

+

−

[[Category:Tutorials]]

+

−

</noinclude>

+

Revision as of 16:27, 15 January 2011

This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

The original JA Purity template was provided from JoomlArt.com as a zip but the latest files have been installed along with Joomla. The relevant files, ja_templatetools.php, style.css, vdot2.gif, opaque.png, icon-search.gif, user-increase.png, user-decrease.png, user-reset.png and header-mask.png, can be found in templates/ja_purity. If you've been following the tutorial, you can download a tutorial version of the template that installs to the templates/my_japurity folder. Inside the folder of the template, the files are located as follows:

To add a color scheme first create a directory styles/header, named for your new color scheme such as white or grey.

Copy the contents of one of the other colors scheme directories such as blue to your new directory.

Copy the three user-XXXX.png files from templates/ja_purity/images to templates/ja_purity/styles/header/grey/images for a grey scheme. If you're using the tutorial version the directory is my_japurity.

Normally you'd be able to edit the CSS in the Joomla Administration area but that isn't an option in this case. So you'll need to edit the file directly in your choice of plain text editors such as VI or Notepad. Edit the style.css file to match your new color scheme. For instance the following changes will make a readable set of colors for a grey scheme (using the copied blue style.css):

Change all instances of #006699 to #CCCCCC (near lines 2,37,115 )

Change all instances of #C3DFED to #444444 (near lines 3,11,15,28,38,50,83,90,107,116)

Change all instances of #1E7CAB to #BBBBBB (near lines 19,29)

Add the following to the style.css file to color the Spotlight h3 tags

#ja-botsl h3 {

color: #000000;

}

Modify the header-mask.png to match your color scheme in your favorite graphic editor. You'll want to use a gradient tool from transparent to foreground color.

Modify the other graphics, vdot2.gif, user-XXXXX.png and icon-search.gif for readability in your new scheme

Lastly you'll need to hack the ja_templatetools.php file to change the genToolsMenu method to look like the following