Piwigo.org

You are not logged in. (Register / Login)

Announcement

Post a reply

Write your message and submit

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

plg
2010-06-28 01:02:10

basic documentation to [wiki] Create a Theme

lcavalie
2010-05-29 00:56:11

That works.

Thanks a lot

P@t
2010-05-29 00:23:00

#mbCategories dt a { color:white; }
#mbCategories dd a { color:black; }

tosca
2010-05-29 00:01:44

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.

lcavalie
2010-05-28 23:37:19

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

lcavalie
2010-05-28 00:29:35

so much easier when you know what to do!

plg
2010-05-28 00:18:21

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

Code:

Theme Name: clear

into

Code:

Theme Name: My Nice Theme

4) in the PHP code, change the line

Code:

  'name'  => 'clear',

into

Code:

  'name'  => 'mytheme',

5) go to admin>configuration>themes and "My Nice Theme" is available in the Inactive themes block

lcavalie
2010-05-27 23:07:05

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

Board footer

Powered by FluxBB

About this website · Donate · Contact Piwigo project © 2002-2013