Welcome, Guest
Username Password: Remember me

Different Styles to different pages
(1 viewing) (1) Guest
Discussion about "Snowflake" Joomla template.
  • Page:
  • 1

TOPIC: Different Styles to different pages

Different Styles to different pages 1 year, 9 months ago #1191

  • ybc
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
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

Re: Different Styles to different pages 1 year, 9 months ago #1193

  • milos
  • OFFLINE
  • Support Staff
  • Posts: 2823
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:
$backgroundImage="bg2";
$backgroundColor="#999";
$topMenuBg="#7e8182";
...

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.

Re: Different Styles to different pages 1 year, 9 months ago #1195

  • ybc
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
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

Re: Different Styles to different pages 1 year, 9 months ago #1196

  • milos
  • OFFLINE
  • Support Staff
  • Posts: 2823
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.

Re: Different Styles to different pages 1 year, 9 months ago #1197

  • ybc
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
i give it a try ill get back to you and show you wat i have done thnx ur a legend budddyyyyy
  • Page:
  • 1
Time to create page: 0.08 seconds