Don't forget to refresh the appropriate style component after you have made all the changes by going to your Administration Control Panel => Styles => (Templates/Themes) => prosilver and click on refresh.
Table of Contents
- Add a Custom Header Image
- Remove Site Logo
- Remove Site Name and Description
- Remove Search Box
- Add a Random Header Image
- Replace "Change font size" icon with search box
- Add search icon to navigation
-----------------------------------------------------------------------------------------------------------------------------------
Add a Custom Header Image
1) First of all, upload your image to the styles/prosilver/theme/images/ directory.
2) Open styles/prosilver/theme/common.css
Find:
Code: Select all
.headerbar {
background: #ebebeb none repeat-x 0 0;
color: #FFFFFF;
margin-bottom: 4px;
padding: 0 5px;
Code: Select all
height: 100px;
3) Open styles/prosilver/theme/colours.css
Find:
Code: Select all
.headerbar {
background-color: #12A3EB;
background-image: url("{T_THEME_PATH}/images/bg_header.gif");
color: #FFFFFF;
}
4) Open styles/prosilver/template/overall_header.html
Find:
Code: Select all
<div id="site-description">
Code: Select all
<div style="height: 90px;">
Find:
Code: Select all
<a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_SEARCH_HIDDEN_FIELDS}
</fieldset>
</form>
</div>
<!-- ENDIF -->
Code: Select all
</div>
-----------------------------------------------------------------------------------------------------------------------------------
Remove Site Logo
1) Open styles/prosilver/template/overall_header.html
Find, and remove:
Code: Select all
<a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
-----------------------------------------------------------------------------------------------------------------------------------
Remove Site Name and Description
Open styles/prosilver/template/overall_header.html
Find, and remove:
Code: Select all
<h1>{SITENAME}</h1>
<p>{SITE_DESCRIPTION}</p>
Remove Search Box
1) Open styles/prosilver/template/overall_header.html
Find, and remove:
Code: Select all
<!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
<div id="search-box">
<form action="{U_SEARCH}" method="post" id="search">
<fieldset>
<input name="keywords" id="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" />
<input class="button2" value="{L_SEARCH}" type="submit" /><br />
<a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH_ADV}</a> {S_SEARCH_HIDDEN_FIELDS}
</fieldset>
</form>
</div>
<!-- ENDIF -->
-----------------------------------------------------------------------------------------------------------------------------------
Add a Random Header Image
This tutorial is based off of the the following article by pentapenguin.
Knowledge Base - Adding a Random Header Image
It will display a random background on the header, rather than the logo as instructed in the mentioned article.
1) Create your images and name them in the following fashion header_random_1.EXTENSION.
- Start at 1 and move up from there. Make sure you don't miss any numbers.
- Replace EXTENSION with the extension your images use (gif, png, jpg, etc.) The
extension must be the same on all images.
3) Open includes/functions.php.
Find:
Code: Select all
'T_STYLESHEET_NAME' => $user->theme['theme_name'],
Code: Select all
'RANDOM_HEADER' => mt_rand(1, NUMBER-OF-IMAGES),
- Change NUMBER-OF-IMAGES to the amount of images you created.
Find:
Code: Select all
'{S_USER_LANG}' => $user['user_lang']
Code: Select all
'{S_USER_LANG}' => $user['user_lang'],
'{RANDOM_HEADER}' => mt_rand(1, NUMBER-OF-IMAGES)
- As before, change NUMBER-OF-IMAGES to the amount of images you created.
Find:
Code: Select all
.headerbar {
background-color: #12A3EB;
background-image: url("{T_THEME_PATH}/images/bg_header.gif");
color: #FFFFFF;
}
Code: Select all
.headerbar {
background-color: #12A3EB;
background-image: url("{T_THEME_PATH}/images/header_random_{RANDOM_HEADER}.EXTENSION");
color: #FFFFFF;
}
- Change EXTENSION to the extension your images use.
-----------------------------------------------------------------------------------------------------------------------------------
Replace "Change font size" icon with search box
1) Open styles/prosilver/template/overall_header.html.
Find:
Code: Select all
<li class="rightside"><a href="#" onclick="fontsizeup(); return false;" onkeypress="fontsizeup(); return false;" class="fontsize" title="{L_CHANGE_FONT_SIZE}">{L_CHANGE_FONT_SIZE}</a></li>
Code: Select all
<li class="rightside" style="font-size: 1em;">
<!-- IF S_DISPLAY_SEARCH and not S_IN_SEARCH -->
<div id="search-box">
<form action="{U_SEARCH}" method="post" id="search">
<fieldset>
<input name="keywords" id="keywords" type="text" maxlength="128" title="{L_SEARCH_KEYWORDS}" class="inputbox search" value="<!-- IF SEARCH_WORDS-->{SEARCH_WORDS}<!-- ELSE -->{L_SEARCH_MINI}<!-- ENDIF -->" onclick="if(this.value=='{LA_SEARCH_MINI}')this.value='';" onblur="if(this.value=='')this.value='{LA_SEARCH_MINI}';" />
<input class="button2" value="{L_SEARCH}" type="submit" /><br />
{S_SEARCH_HIDDEN_FIELDS}
</fieldset>
</form>
</div>
<!-- ENDIF -->
</li>
Find:
Code: Select all
#search-box {
color: #FFFFFF;
position: relative;
margin-top: 30px;
margin-right: 5px;
display: block;
float: right;
text-align: right;
white-space: nowrap; /* For Opera */
}
Code: Select all
#search-box {
color: #FFFFFF;
position: relative;
display: block;
text-align: right;
white-space: nowrap; /* For Opera */
line-height: 1em;
}
-----------------------------------------------------------------------------------------------------------------------------------
Add search icon to navigation
1) Open styles/prosilver/template/overall_header.html.
Find:
Code: Select all
<li class="icon-faq"><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li>
Code: Select all
<li class="icon-search"><a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}">{L_SEARCH}</a></li>