Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • mazhar shah Friend
    #151367

    I 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 Friend
    #345048

    Dear 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. default_dark_red.zip
    mazhar shah Friend
    #345063

    Hi
    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 Friend
    #346123

    ok i solved it. re-did the css and it works.

    mazhar shah Friend
    #346188

    sorry, 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 Friend
    #346591

    Dear 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


    1. layouts.zip
    pressmar Friend
    #358503

    Hi, 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 Moderator
    #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 template

    richardaccord Friend
    #359131

    Many thanks duchh!! worked perfectly.

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 5 voices, and was last updated by  richardaccord 14 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum