The document discusses advanced customization techniques for the Thesis theme. It provides 5 examples of how to customize Thesis using hooks and custom code: [1] Adding a secondary menu by placing custom menu code in a hook [2] Creating a custom page template [3] Widgetizing the multimedia box to add widgets [4] Adding custom code to modify the footer [5] Overview of Thesis hooks and how to use them to customize the theme.
10. Thesis features a simple hook system that is essentially an API—a set of basic commands that you can use to add to, subtract from, and modify the functionality of your Thesis installation. Two step process: 1. construct a simple function to house your custom code 2. Tell Thesis where to place your custom code by specifying the appropriate hook You can add and remove any functions using add_action() and remove_action()
16. Example 3: Custom Page Template <?php remove_action('thesis_hook_custom_template', 'thesis_custom_template_sample'); add_action('thesis_hook_custom_template', 'home_custom'); ?> Remember to set the page template to Custom Template
17. Example 4: Add A Secondary Menu Thesis by default has a single menu So lets create a secondary menu!
18. Example 4: Add A Secondary Menu <?php function topnav_menu() { ?> <ul id="topnav"> <li><a href=“/wordpress">WordPress</a></li> <li><a href=“/wpmu">WPMU</a></li> <li><a href=“/buddypress”>BuddyPress</a></li> <li><a href=“/bbpress">bbPress</a></li> </ul> <?php } add_action('thesis_hook_before_header', 'topnav_menu'); ?>
19. Example 4: Add A Secondary Menu /* Top Nav bar */ .custom ul#topnav { border-style: none; list-style-image: none; list-style-position: outside; list-style-type: none; background:#E4E4E4 none repeat scroll 0 0; width: 100%; float: left; } .custom ul#topnav li { float: left; padding: 3px 10px 3px 0px; } .custom ul#topnav li a { font-size: 1.1em; color: #000000; } .custom ul#topnav li a:hover { text-decoration: underline; } Add a little styling in custom.css
20. Example 4: Add A Secondary Menu BAM! Another menu! Ref: http://www.emptycabinmedia.com/thesis-theme-add-another-menu/