Junior Brown
|
Hello everybody, I am new to this forum and also to website design. I have developed a Drupal theme in Artisteer 3.0 with an image background that shows on every page. I would like to use a different image for a specific page on the website. Can anyone please tell me how to do this? I have been on the Drupal website but there is no solution specific to Artisteer themes.
|
|
Mark C
|
The process is the same for Artisteer as it is for any other Drupal theme. Once Artisteer creates the theme it then acts in the same way (more or less) as all Drupal themes.
This page might help you, but if you're new to webdesign/drupal you might want to take your time reading it:
http://drupal.org/node/451446
|
|
Junior Brown
|
Thank you for your kind assistance. I will see if I can make sense of it all.
|
|
bHd
|
There is a module called "Sections" which allows to define different themes for different parts of your website. You can specify paths or content types or views to have different theme.
http://drupal.org/project/sections
|
|
Roxy
|
Contrib module Themekey is what I use. Works great.
http://drupal.org/project/themekey
|
|
TechZoom.Org
|
Interesting question.
It is possible to assign different styles for particular pages of Drupal.
You need to create CSS for body classes that get printed.
Artisteer exported themes do have print body classes function. Hence if you browse your site & use firebug to determine you can see body classes. So may be what you can do it
.front body
{
background-image: url(bg.jpg);
background-repeat: repeat;
}
or
.node-1 body
{
background-image: url(bg.jpg);
background-repeat: repeat;
}
I have not tried this for page bg image but I used similar for different blocks.
Hope this helps
--
http://techzoom.org
|
|
Rinqu
|
Quote bHd:
There is a module called "Sections" which allows to define different themes for different parts of your website. You can specify paths or content types or views to have different theme.
http://drupal.org/project/sections
Hello bHd, I've seen the section module but it doesn't work at drupal7. How can I get this kind of support at my drupal 7?
Please help me. I'm newbie at drupal family!!!!!
Thanks
|
|
Tuomas Leppänen
|
Posted this in above topic:
Just replace your body line in template.php with
<?php $nid = arg(1); ?>
<body <?php if (!empty($body_classes)) { echo 'class="'.$body_classes. ' ' . 'node-' . $nid.'"'; } ?>>
Voila, all your nodes have node-x body class you can use to theme your header, body, or anything on certain page
|
|