Greenguy's Board


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

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2008-05-24, 12:14 PM   #1
Preacher
There's Xanax in my thurible!
 
Preacher's Avatar
 
Join Date: Apr 2005
Location: Wherever they screw on my head
Posts: 2,441
Send a message via ICQ to Preacher
I've made 5 personal themes for different blogs. All I do is take the default theme, because it has all the inserts in place already and strip the css and start styling from there.

When I want something in a different location, like in the header, it's easy just to copy that snippet of code out of the body or footer and paste it into the header.
__________________
NSCash * This Depraved World
Preacher is offline   Reply With Quote
Old 2008-05-26, 12:45 AM   #2
RedCherry
Of all the things I've lost, I miss my mind the most.
 
RedCherry's Avatar
 
Join Date: Apr 2004
Location: Middle of the Desert, Pahrump, NV
Posts: 3,187
Send a message via ICQ to RedCherry
Quote:
Originally Posted by Preacher View Post
When I want something in a different location, like in the header, it's easy just to copy that snippet of code out of the body or footer and paste it into the header.
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 tried just copying
Code:
<?php if ( !function_exists('dynamic_sidebar')
        || !dynamic_sidebar(1) ) : ?>
up into the header, and that didn't seem to do it. I'm using the tag cloud that comes with the standard word press.

Can't believe I just started playing with wordpress today, and already I'm trying to hack it, lol.
RedCherry is offline   Reply With Quote
Old 2008-05-26, 03:00 AM   #3
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
Reply


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:56 AM.


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