Ok so let's imagine that I want to create my own theme. I have version 2.1 and I will use 'clear' has my starting point and modify it to get what I want.
2 questions:
- how do I duplicate the clear theme and make it appear inside the application under a new name?
I assume that I duplicate the folder in the theme directory, give it a new name and... do something to make it appear in the administration theme panel.
- once I have that new theme that look exactly like 'clear' (let's name it 'mytheme') what files do I need to edit?
Thanks for the help
Offline
Hi lcavalie,
lcavalie wrote:
- how do I duplicate the clear theme and make it appear inside the application under a new name?
1) copy the "themes/clear" directory as "themes/mytheme"
2) edit themes/mytheme/themeconf.inc.php
3) in the header comment, change the line
Theme Name: clear
into
Theme Name: My Nice Theme
4) in the PHP code, change the line
'name' => 'clear',
into
'name' => 'mytheme',
5) go to admin>configuration>themes and "My Nice Theme" is available in the Inactive themes block
Offline
so much easier when you know what to do!
Offline
Now I'm running into a little problem that turn out to be quite complicated
I want to have a design where in the menu bar on the left the background of the top titles is black and the text is white. but the test of the links below is black on a white background. That's simple but hard to describe so I attach a little screen copy below.
I managed to do that through modifying the theme.css of my theme.
When I try to do the same thing for the categories menu (mbCategories) I run into a problem
the title is a link "Categories" and every option below is also a link.
If I change the link color to black than the title becomes black on black, if I change the link color to white than the menu options are white on white... problem!
And I cannot find something that would identify the Title as opposed to the menu options, a class would do that but there are none.
Any help or suggestion?
Thanks
Offline
If you use Firefox, try the Firebug add-on. It will give every class/id you'll need to know to fix your CSS rules accurately.
Last edited by tosca (2010-05-29 00:02:16)
Offline
#mbCategories dt a { color:white; }
#mbCategories dd a { color:black; }
Offline
basic documentation to [wiki] Create a Theme
Offline