Greenguy's Board


Go Back   Greenguy's Board > Blogs and Blogging
Register FAQ Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2008-05-26, 04:00 AM   #5
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:28 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc