View Single Post
Old 2008-05-26, 03:00 AM   #6
walrus
Oh no, I'm sweating like Roger Ebert
 
walrus's Avatar
 
Join Date: May 2005
Location: Los Angeles
Posts: 1,773
Send a message via ICQ to walrus Send a message via Yahoo to walrus
Quote:
Originally Posted by RedCherry View Post
Is there a way to get a widget in the header? Right now I have my tag cloud in my sidebar, but i'd love to have it across the top , just below the header, above the posts and sidebar.
I took a quick look at your theme and I'd probably try duplicating all of the menu stuff in your CSS and call it something like tags and then add the div right under the menu div in your header file. Something like this:
Code:
<div id="menu">
		<ul>
		<li><a href="<?php bloginfo('url'); ?>">Home</a></li>
		<?php wp_list_pages('depth=1&title_li='); ?>
		</ul>
	</div>
<div id="tags">
		<ul>
<?php wp_tag_cloud('format=flat'); ?>
		</ul>
	</div>
You may need to play around with the height in the CSS or remove it but that should put your tag cloud right below your menu bar.

Of course I never get the code right the first time so you'll probably have to play around with it a bit.

For more info on the wordpress tag for a tag cloud go here: http://codex.wordpress.org/Template_Tags/wp_tag_cloud

I never learned widgets, I use template tags for everything.

I just looked at your blog and noticed your using simple tags, the code for that would be
Code:
<?php st_tag_cloud(''); ?>
The usage for that can be found here: http://code.google.com/p/simple-tags/wiki/TagCloud
__________________
Naked Girlfriend Porn TGP
free partner account
walrus is offline   Reply With Quote