FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Change of default color? (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Change of default color?
#1608
hemant (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Change of default color? 5 Months, 2 Weeks ago Karma: 0  
Hi,

I would like to set default color to "orange" in flex template (instead of blue). I do not want to give option of color choosing to my site visitors and orange need to be the default color in that case. I tried several possibilities as this template do not offer selection of default color easily, like your other few templates do. Can you please tell me step-by-step how to achieve this?

Thanks
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1612
Matt (Admin)
Support
Admin
Posts: 907
graph
User Offline Click here to see the profile of this user
Gender: Male Location: Columbus, Ohio Birthdate: 1973-12-04
Re:Change of default color? 5 Months, 2 Weeks ago Karma: 12  
hello Hemant:

Sorry, this process could be a tad easier in retrospect.

Making orange default is not so bad though. Let me show you.

open up your index.php file for this template and find these lines.

Code:

<!-- [START] CSS Stylesheets

These 5 lines include the CSS stylesheet for standard and alternate styles

to be chages with the JS stylesheet switcher

-->

<!--[if IE 5]>

<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/ie5-5.css" rel="stylesheet" type="text/css" />

<![endif]-->

<!--[if IE 6]>

<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/ie-6.css" rel="stylesheet" type="text/css" />

<![endif]-->

<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css" />

<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/blue.css" title="blue" rel="stylesheet" type="text/css" media="screen" />

<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/orange.css" title="orange" rel="alternate stylesheet" type="text/css" media="screen" />

<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/green.css" title="green" rel="alternate stylesheet" type="text/css" media="screen" />

<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/red.css" title="red" rel="alternate stylesheet" type="text/css" media="screen" />

<!-- [END] CSS Stylesheets -->




You do not want the other colors, so remove the respective lines. You can copy my code here.

Code:

<!-- [START] CSS Stylesheets

These 5 lines include the CSS stylesheet for standard and alternate styles

to be chages with the JS stylesheet switcher

-->

<!--[if IE 5]>

<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/ie5-5.css" rel="stylesheet" type="text/css" />

<![endif]-->

<!--[if IE 6]>

<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/ie-6.css" rel="stylesheet" type="text/css" />

<![endif]-->

<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css" />

<link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/orange.css" title="orange" rel="alternate stylesheet" type="text/css" media="screen" />

<!-- [END] CSS Stylesheets -->




Now that the template has no idea that it has template color options, lets remove the buttons so nobody can see it.

Scroll down a bit innt eh same index.php file and find this code.

Code:

<div id="container">

<div id="colorbar"></div>

<div id="navbar">

<div id="options-wrap">

<div id="displayOptions">

<h3>Display Options</h3>

<h4>Color Options</h4>

<ul id="color-scheme" class="menu horizontal clearfix">

<li><a href="#" rel="blue" id="colorBlue" class="styleswitch" title="switch to blue">Switch to blue color scheme</a></li>

<li><a href="#" rel="red" id="colorRed" class="styleswitch" title="switch to red">Switch to red color scheme</a></li>

<li><a href="#" rel="green" id="colorGreen" class="styleswitch" title="switch to green">Switch to green color scheme</a></li>

<li><a href="#" rel="orange" id="colorOrange" class="styleswitch" title="switch to orange">Switch to orange color scheme</a></li>

</ul>

<h4>Text Size</h4>

<ul id="text-size" class="menu horizontal clearfix">

<li><a href="#" rel="mediumText" id="textMedium" class="fontswitch" title="small font">Medium Font Size (Default)</a></li>

<li><a href="#" rel="largeText" id="textLarge" class="fontswitch" title="large font">Large Font Size</a></li>

<li><a href="#" rel="xLargeText" id="textXLarge" class="fontswitch" title="extra large font">X-Large Font Size</a></li>

</ul>

</div>

</div>


Remove out the color bits you do not want like I did here.

Code:

<div id="container">

<div id="colorbar"></div>

<div id="navbar">

<div id="options-wrap">

<div id="displayOptions">

<h3>Display Options</h3>

<h4>Color Options</h4>

<ul id="color-scheme" class="menu horizontal clearfix">

<li><a href="#" rel="orange" id="colorOrange" class="styleswitch" title="switch to orange">Switch to orange color scheme</a></li>

</ul>

<h4>Text Size</h4>

<ul id="text-size" class="menu horizontal clearfix">

<li><a href="#" rel="mediumText" id="textMedium" class="fontswitch" title="small font">Medium Font Size (Default)</a></li>

<li><a href="#" rel="largeText" id="textLarge" class="fontswitch" title="large font">Large Font Size</a></li>

<li><a href="#" rel="xLargeText" id="textXLarge" class="fontswitch" title="extra large font">X-Large Font Size</a></li>

</ul>

</div>

</div>



THEN, open up template_css.css and find this.

Code:

@import url(customise.css);

@import url(menu.css);

@import url(blue.css);




Change blue to orange. This is the most important bit.


Now delete the cookie in your browser for the site you are making edits to, and that should do it for you. It's important you delete cooke as the color might still stay on blue until you do that as the template sends a cookie for color.

I hope that helps.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/04/24 09:46 By Matt.
 
  The administrator has disabled public write access.
#1628
hemant (User)
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Re:Change of default color? 5 Months, 2 Weeks ago Karma: 0  
Thanks alot, Matt!

This is working now!

Really thankful to you for your quick reply and step by step guide.

JJ really rocks!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#1630
stoker (Admin)
Admin
Posts: 581
graphgraph
User Offline Click here to see the profile of this user
Gender: Male JoomlaJunkie Location: Cape Town, South Africa Birthdate: 1980-12-31
Re:Change of default color? 5 Months, 2 Weeks ago Karma: 9  
Hi Hermant,
Glad to hear you're a happy camper - just the way we like it!! Have a super weekend!
Cheers,
Chris

PS, Matt - Keep up the great work!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Love Thy Favicon!

Click on a block to select it..


  • Template Club

    We have included a number of subscription options to give you access to all our templates. readmore

  • JoomlaJunkie Blog

    Have you seen the JoomlaJunkie Blog, where we will be covering all kinds of exciting topics! readmore

  • Help & Support

    We offer various types of support to assist you getting setup with your new template. readmore

  • Demo Templates

    Not had a look at our templates yet? Why not head over to our demo server to take a peek!! view demos

 
  • Copyright ©2008 JoomlaJunkie.