Member
Member
tosca   2012-12-31, 11:22
#1

Is there an easy way to style some ZenPages differently from the others?
I was looking for a way to add a id and/or class for the whole page, but didn't see any such parameter in the administration page.

Have I missed something?
Thanks for any hint on the matter.

Administrator
Administrator
fretzl   2012-12-31, 12:07
#2

The [i]multiple_layouts[/i] plugin is designed to do just that. How it works is explained in the plugin info.

Administrator
Administrator
acrylian   2012-12-31, 12:32
#3

If it is just changing a class you could add a check like if($_zp_current_zenpage_page->getTitlelink() == "") { .... } and let it print it.

You could also modify the theme to use for example the custom field or a codeblock to store a class or id name and just check for it.

The multiple_layouts plugin is best suited if you do really different things like different columns or something.

Member
Member
tosca   2012-12-31, 12:59
#4

Thanks for your quick answer.

I guess the custom field or the codeblock with a theme modification will be me best option: whenever I want to have another page layout, I'll just have to add the corresponding CSS rules.

But I'll have to investigate a bit, as I have yet to use a custom field or a codeblock.

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