-
AuthorPosts
-
Sherlock Friend
Sherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
October 21, 2008 at 10:10 am #276431admin account and FTP account
fanho Friendfanho
- Join date:
- September 2008
- Posts:
- 42
- Downloads:
- 6
- Uploads:
- 1
- Thanks:
- 13
- Thanked:
- 4 times in 1 posts
October 21, 2008 at 10:18 am #276435Sorry if I didn’t make it clear but my site is not on a web server right now. It’s on a localhost (on my computer running with wamp server) So I don’t have a FTP that I can give you.
I know that wamp can go online and then you should be able to access it directly on my computer. But I’ve never done before so i’m trying to understand how to do it.
Do you know how to do it ?Stephane
fanho Friendfanho
- Join date:
- September 2008
- Posts:
- 42
- Downloads:
- 6
- Uploads:
- 1
- Thanks:
- 13
- Thanked:
- 4 times in 1 posts
October 21, 2008 at 10:28 am #276437Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
October 21, 2008 at 10:30 am #276439Hi
I tried on my localhost like this:
<?php
$Itemid=JRequest::getCmd('Itemid');$color="default";
if ($Itemid=="54"){
$color="red";
}
if ($Itemid=="58"){
$color="green";
}?>
<link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo $color; ?>.css" rel="stylesheet" type="text/css" />And it works
1 user says Thank You to Sherlock for this useful post
fanho Friendfanho
- Join date:
- September 2008
- Posts:
- 42
- Downloads:
- 6
- Uploads:
- 1
- Thanks:
- 13
- Thanked:
- 4 times in 1 posts
October 21, 2008 at 10:35 am #276441Wow!!!!
It does work !!!!:D
Thank you so much !!!
Have a great day !!!Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
October 22, 2008 at 4:50 am #276529OK
I marked it is solvedSherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
October 22, 2008 at 4:50 am #276530OK
I marked it is solvediainmac Friendiainmac
- Join date:
- September 2006
- Posts:
- 62
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 25
- Thanked:
- 2 times in 1 posts
December 10, 2010 at 10:54 pm #366223I am trying to achieve the same result with the JA Olivine template and I have added the same code to the idex file and identified the item id. I am not sure what I need to do with the css file to get the colour/image to show. Do I need to create a completely new css file called red.css? and if so can you give an example of what I need to write to get the menu to change colour.
Thanks in advance for your help.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
December 11, 2010 at 7:45 am #366282Dear iainmac,
You just need to create additional css files to include in index.php along with other css files, not to replace theme.
For instance, you define an red.css, in that file you only need to define styles for necessary elements of which you wish to change style / color.Since, it is not all that easy to code in css and is beyond the preview of support here. You should use google for refences / tutorials regarding CSS coding.
-
AuthorPosts
This topic contains 24 replies, has 4 voices, and was last updated by Ninja Lead 13 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum