This forum is for assistance with theme development.

How to theme latest node different from older ones

Hi all folks, I'd like to theme latest node in my home page different than older nodes. I started editing node.tpl.php file, but I need a snippet to extract from database just the last node, in order to put him in a customized css class using the if / elseif PHP code.
I apologize for my bad English. Hope you can help me.
Thanks!

changing the way primary links are outputted

Hi,

Currently I have the primary links outputting in the following fashion:-

<ul class="links primary-links"><li class="first menu-1-1-2"><a href="/" title="Back to the homepage." class="menu-1-1-2">Home</a></li>
<li class="menu-1-2-2"><a href="/blog" title="General ramblings and the occasional article." class="menu-1-2-2">Blog</a></li>
<li class="menu-1-3-2"><a href="/explore" title="Who I am and what I do!" class="menu-1-3-2">Explore</a></li>
<li class="menu-1-4-2"><a href="/work" title="Some of my past works of art." class="menu-1-4-2">Work</a></li>
<li class="menu-1-5-2"><a href="/projects" title="Current projects I am working on." class="menu-1-5-2">Projects</a></li>
<li class="last menu-1-6-2"><a href="/contact" title="Get in touch via e-mail, IM or telephone" class="menu-1-6-2">Contact</a></li>
</ul>

which is fine but i want to change it so the title/description of the link is also displayed under the link name like this:-

tab rename

Hi
Go to Home> Administrator > Content Management and when we visit to content types we can see "Add Content Type" tab.
I want to rename the "Add content type" tab as "Add" and "list" as "Show".
Can any 1 explain me.
Thanks
Heshan

menu blocks with image

Hi,

maybe it's a silly question but what would be the easiest way to create menu blocks with customizable thumbnails just like on theme garden?

for example:
http://themegarden.org/drupal50/?q=node&theme=barlow

I'd like to add this feature to my theme.
Thanks in advance

variables in templates

Hello,

I'm building a module/block for a custom theme. Depending on the request uri the color changes and a random themepicture is shown.

The easiest thing is to put an extra class in the body tag to let css do the theming things offcourse. Changing phptemplate_body_class is no problem but what is the best way to get a variable from my module/block into page.tpl.php?

Thanks, Trogie

Who is the master that makes the css green?

I am attempting to customise the tabs on my site.

Without doing anything, the local task tabs are printed with borders, with a specific color, with a specifif a:hover color, etc.

I can't for the life of me discover where these decisions have been made to attempt to begin to comprehend how to change them.

I find calls to the theme(menu_local_tasks) all over the place, but not the specific style.

Also, my css is a bit primitive, so I need to ask - if I see something like this

ul.primary li a {style}

Pages

Subscribe with RSS Subscribe to RSS - Theme development