- Posts: 3
- Thank you received: 0
Different Styles to different pages
-
ybc
Inactive member - Topic Author
- New Member
Less
More
14 years 7 months ago #1191
by ybc
Different Styles to different pages was created by ybc
hi guys
does anyone know how to make a page have its own preset style
for example im designing a touring company website and they do summer winter and spring tours now snowflake is the winter theme but when they choose in the menu to go to summer tours i want the background and the colors to change when they click on the page is there a way that i could have a css for different pages with different images as background and menus.
please help me out
cheeeeeerrss
yasser :woohoo:
does anyone know how to make a page have its own preset style
for example im designing a touring company website and they do summer winter and spring tours now snowflake is the winter theme but when they choose in the menu to go to summer tours i want the background and the colors to change when they click on the page is there a way that i could have a css for different pages with different images as background and menus.
please help me out
cheeeeeerrss
yasser :woohoo:
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6742
- Thank you received: 716
14 years 7 months ago #1193
by milos
Replied by milos on topic Re: Different Styles to different pages
Hi Yasser,
Find folder /templates/hot_snowflake/styles and you'll see 5 files inside, style1.php, style2.php, etc.
Open, in example, style1.php in plain text editor. You will find all template parameters in each file, like this:
In this example, background is set to bg2, background color is #999, top menu background is #7e8182, and so on...
So, use Custom style while testing and making your own style, then just copy all data in file style1.php. Then, test and make another style and copy data to style2.php, and so on.
This explanation is valid for all our templates with custom styles support.
Find folder /templates/hot_snowflake/styles and you'll see 5 files inside, style1.php, style2.php, etc.
Open, in example, style1.php in plain text editor. You will find all template parameters in each file, like this:
Code:
$backgroundImage="bg2";
$backgroundColor="#999";
$topMenuBg="#7e8182";
...
So, use Custom style while testing and making your own style, then just copy all data in file style1.php. Then, test and make another style and copy data to style2.php, and so on.
This explanation is valid for all our templates with custom styles support.
Please Log in to join the conversation.
-
ybc
Inactive member - Topic Author
- New Member
Less
More
- Posts: 3
- Thank you received: 0
14 years 7 months ago #1195
by ybc
Replied by ybc on topic Re: Different Styles to different pages
Thanx for the quick reply Milos
i know how to do that but how can i set that style to a particular page once the clients click on a menu to go to a certain article the style changes to say style3.
cheers
i know how to do that but how can i set that style to a particular page once the clients click on a menu to go to a certain article the style changes to say style3.
cheers
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6742
- Thank you received: 716
14 years 7 months ago #1196
by milos
Replied by milos on topic Re: Different Styles to different pages
You should make link like "yoursite.com/index.php?style=3".
There could be other parameters, like this "yoursite.com/snowflake/index.php?option=com_content&view=article&id=21&Itemid=61&style=1" beside the style parameter.
There could be other parameters, like this "yoursite.com/snowflake/index.php?option=com_content&view=article&id=21&Itemid=61&style=1" beside the style parameter.
Please Log in to join the conversation.
-
ybc
Inactive member - Topic Author
- New Member
Less
More
- Posts: 3
- Thank you received: 0
14 years 7 months ago #1197
by ybc
Replied by ybc on topic Re: Different Styles to different pages
i give it a try ill get back to you and show you wat i have done thnx ur a legend budddyyyyy
Please Log in to join the conversation.
Time to create page: 0.234 seconds