twodinks.com

A different use for this blog

by on Aug.03, 2010, under Snippets

Sure, once in awhile one of us will find time to post our usual silliness. I’m also going to start using this as a place to store code snippets I don’t want to lose. I’m sure you’ll all be very excited to read them.

Switch Nav position in Thesis

/* Switch Nav Position PHP */
remove_action('thesis_hook_before_header', 'thesis_nav_menu');
add_action('thesis_hook_after_header', 'thesis_nav_menu');

Complex Custom Footer in Thesis

An easier way would be to put this in custom_functions.php:
add_action('thesis_hook_footer', 'thesis_nav_menu');
but that only works if you want the header and footer nav content to match.

/* Custom footer */
add_action('thesis_hook_footer', 'custom_footer');
function custom_footer() {

?>
<div id="footer_right">&copy; < ?= date( 'Y' ) ?>, Company Name &bull; Site by the <a href="http://www.mediacellar.com">media cellar, inc.</a></div>
<div id="footer_left">
<a href="index.php">HOME</a> &bull;
<a href="/page1">PAGE1</a> &bull;
<a href="/page2">PAGE2</a> &bull;
<a href="/building-blocks">EXTERNAL LINK</a> &bull;
<a href="/contact-us">CONTACT</a> &bull;
<a href="/privacy-policy">PRIVACY POLICY</a>
</div>
<div id="footer_note">footernote</div>
< ?php
}

Plenty more to come. Be excited, you know you love this stuff.


4 Comments for this entry

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!