A different use for this blog

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.

Comments

  1. Jim says:

    Wow, finally something to read on this blog. Good post Dave.

  2. Dave says:

    Funny thing is that Joe had the same idea earlier today. Look for his exciting post on local sandboxing, coming soon!

  3. maz says:

    I hate when my navs don’t match.

  4. Other Jim says:

    Thesis to hook the footer, mysquirrel, ya put your right footer in,#@#:::{Foxtrot Zulu Milkshake, Pyrex Pickle Blowfish. Snorkel Uumellmahaye, Hfuhruhurr))}}^&*}
    OK–what did I just say?? I kinda like this code snippet stuff.

Speak Your Mind

*