Member
Member
smiguel   2010-09-17, 21:10
#1

Hi,

anyone know an alternative way to add some classes to the UL and LI elements of the Custom Menu plugin?

I can't find more documentation of this plugin (only I've found http://www.zenphoto.org/2010/04/menu_manager/)...

Member
Member
kagutsuchi   2010-09-17, 21:19
#2

The Zenphoto Functions Documentation is located under the User Guide on this site.

http://www.zenphoto.org/documentation/

The function printCustomMenu() allows you to specify certain ids/classes for certain parts of the menu.

Member
Member
smiguel   2010-09-18, 03:27
#3

How? Every time I try to implement a string, menu disappears. Surely I'm not doing well...

Administrator
Administrator
acrylian   2010-09-18, 08:46
#4

Maybe you should explain a little more what you actually want to do and what you did so far.
I also recommend strongly to read the "how to read the functions guide" article.

The menu allows you to set the id for the toplevel and it's child. Additionally you can set the class for the sublevel and as well.
The menu comes with predefined classes for the menu item type you can use for styling as well. I suggest to take a look at the generated source code.

Member
Member
smiguel   2010-09-18, 10:44
#5

I've solved my menu with imagination and CSS (i'm a better designer than programmer) and my last question, not very important, is: can "active" sections have link also?

You can view my menu running here: http://cestlaviestudi.com/index.php

Administrator
Administrator
acrylian   2010-09-18, 10:57
#6

Only if you make a custom menu function of your own. It does not make much sense to me to link to the page you are actually on.

Member
Member
smiguel   2010-09-18, 11:56
#7

I know, but for aesthetic...

Administrator
Administrator
acrylian   2010-09-18, 13:14
#8

I don't understand, looks fine for me "marked as selected"... Good for usability btw.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.