-
AuthorPosts
-
mazhar shah Friend
mazhar shah
- Join date:
- September 2014
- Posts:
- 201
- Downloads:
- 132
- Uploads:
- 37
- Thanks:
- 37
- Thanked:
- 8 times in 5 posts
May 27, 2010 at 7:29 am #151367I have 6 distinct sections on my site, each linked and opened with a separate menu item. i WANT EACH SECTION TO HAVE A DIFFERENT COLOUR THEME. Ores already has a number of Dark and Light themes built in.
How and where can i place instructions for example: Secton 1 to be dark blue. Section 2 to be dark red. Secton 3 to be Light blue etc. Some sections are linked to components such as the forum and SOBI2 and some are to standrad joomla content.
Can I do this in the template ‘Page Layout Overwrites’ or in the menu links????
A detail explantion would be helpful.
Css Magician FriendCss Magician
- Join date:
- October 2014
- Posts:
- 741
- Downloads:
- 43
- Uploads:
- 53
- Thanks:
- 114
- Thanked:
- 366 times in 263 posts
May 28, 2010 at 7:48 am #345048Dear maz001,
Example, your menu itemID is 88, and you want to have Dark Red theme. Would you like copy my attach file to templatesja_oreslayouts folder. After that, at template config in backend -> template JA Ores -> Layout -> Page Layouts Overwrite, you should have : 88=default_dark_red.
Do you see the different my attach file with templatesja_oreslayouts.default.php ? That is
<link href="<?php echo $this->templateurl(); ?>/css/colors/dark-red.css" rel="stylesheet" type="text/css" />
after<?php $this->loadBlock('head') ?>
1 user says Thank You to Css Magician for this useful post
mazhar shah Friendmazhar shah
- Join date:
- September 2014
- Posts:
- 201
- Downloads:
- 132
- Uploads:
- 37
- Thanks:
- 37
- Thanked:
- 8 times in 5 posts
May 28, 2010 at 9:18 am #345063Hi
Thanks for that. However, it almost worked.
What i am getting is All links are red, red slideshow position background. But the main template backgraound is still white and all text is still black. I think the dark-red.css does not have any refererences to a dark background.The template should be calling dark_red but seems not to be calling the ‘dark’ background with white text.
btw, my whole site is set to light-blue as default which i need to keep. (Only certain pages to be dark-red).
mazhar shah Friendmazhar shah
- Join date:
- September 2014
- Posts:
- 201
- Downloads:
- 132
- Uploads:
- 37
- Thanks:
- 37
- Thanked:
- 8 times in 5 posts
June 6, 2010 at 1:49 pm #346123ok i solved it. re-did the css and it works.
mazhar shah Friendmazhar shah
- Join date:
- September 2014
- Posts:
- 201
- Downloads:
- 132
- Uploads:
- 37
- Thanks:
- 37
- Thanked:
- 8 times in 5 posts
June 7, 2010 at 9:40 am #346188sorry, still have a problem. post 3 above is still an issue.
dark_red is still showing a white background, when it should be dark.seems impossible to get some sections (pages) with light themes and other sections with dark themes.
The only way to do it is using menu links but that defeats the object.If the default setting in the admin is for a light themes then ALL variations have a light background, even if example (88=default_dark_red ) is pointing to a dark one. SImilarly, if a dark theme is deafult in admin, then all variations will have a dark background, even if example (88=default_light_red) is pointing to a light theme.
Its mailnly the page backgrounds which either stay light or dark depending on the default.
Css Magician FriendCss Magician
- Join date:
- October 2014
- Posts:
- 741
- Downloads:
- 43
- Uploads:
- 53
- Thanks:
- 114
- Thanked:
- 366 times in 263 posts
June 10, 2010 at 2:25 am #346591Dear maz001,
Please try to use my attach file.
I changed file default_dark_red.php as follow:
change
<head>
<?php $this->loadBlock('head') ?>
<link href="<?php echo $this->templateurl(); ?>/css/colors/dark-red.css" rel="stylesheet" type="text/css" />
</head>
to
<head>
<?php
global $ja_color ;
$ja_color = "dark-red";
?>
<?php $this->loadBlock('head') ?>
</head>
I changed file default.php as follow:
change :
<head>
<?php $this->loadBlock('head') ?>
</head>
to
<head>
<?php
global $ja_color ;
$ja_color = strtolower ($this->getParam(JA_TOOL_COLOR));
?>
<?php $this->loadBlock('head') ?>
</head>
Of course, I have to change blockshead.php as follow:
change :
<?php if (($jamenu = $this->loadMenu())) $jamenu->genMenuHead (); ?><link href="<?php echo $this->templateurl(); ?>/css/colors/<?php echo strtolower ($this->getParam(JA_TOOL_COLOR)); ?>.css" rel="stylesheet" type="text/css" />
to:
<?php
global $ja_color;
?><?php if (($jamenu = $this->loadMenu())) $jamenu->genMenuHead (); ?>
<link href="<?php echo $this->templateurl(); ?>/css/colors/<?php echo $ja_color; ?>.css" rel="stylesheet" type="text/css" />
I hope my solution is helpful
pressmar Friendpressmar
- Join date:
- March 2008
- Posts:
- 119
- Downloads:
- 14
- Uploads:
- 51
- Thanks:
- 25
- Thanked:
- 4 times in 1 posts
October 11, 2010 at 10:29 pm #358503Hi, i still have some problems with the color variations on different sections or mainmenu selections. as you see under http://www.pressmar.de/joomla there are 6 sections and i want to use 6 different color layouts.
Am i right that if i use the work around above, that the iphone usere will just see one layout and so just one color?
Is there a better way? In the eary day of 1.5 some joomla admin told me to import more copies of one template like ja_ores_light_blue and ja__ores_light_grew and so one and set the template just for the specifiv pages?Is there a better way? In short: i want color variants on specfic sections or pages without losing mobile oder rtl-lrl options?
Thanks in advance.Yours Oliver:)
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 13, 2010 at 2:55 am #358688<blockquote>i want color variants on specfic sections or pages without losing mobile oder rtl-lrl options?</blockquote>
I am afraid that this feature has not been supported in the templateOctober 15, 2010 at 2:02 pm #359131Many thanks duchh!! worked perfectly.
-
AuthorPosts
This topic contains 9 replies, has 5 voices, and was last updated by richardaccord 14 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum