Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //search box in navigation
- //remove thesis navigation
- remove_action('thesis_hook_before_header', 'thesis_nav_menu');
- //custom Nav
- function custom_nav() {
- echo '<div id="nav">';
- echo '<div class="nav_container">';
- thesis_nav_menu(); //this is default navigation
- echo '<div class="search">';
- thesis_search_form(); // add thesis search box
- echo '</div>';
- echo '</div>';
- echo '</div>';
- }
- remove_action('thesis_hook_footer', 'thesis_attribution');
- ?>
- <div align="left">
- <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
- <br />
- </div>
- <?php
- }
- add_action('thesis_hook_after_content','pagenavi');
- /* SAVE THIS IN CUSTOM_FUNCTIONS.PHP FILE */
- if ( function_exists('register_sidebar') )
- register_sidebar(array(
- 'name'=>'Media Box',
- 'before_widget' => '<li class="widget %2$s">',
- 'after_widget' => '</li>',
- 'before_title' => '<h3>',
- 'after_title' => '</h3>'));
- function mediabox_widget() {
- echo '<ul class="sidebar_list">';
- if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Media Box') ) :
- echo '</ul>';
- endif;
- }
- add_action('thesis_hook_multimedia_box', 'mediabox_widget');
- remove_action('thesis_hook_archives_template', 'thesis_archives_template');
- add_action('thesis_hook_after_post', 'custom_sitemap');
- /* SITEMAP AND ARCHIVES PAGES */
- function custom_sitemap() {
- if (is_page('sitemap')) { ?>
- <div>
- <div class="sitemapl">
- <h3>Pages:</h3>
- <ul>
- <?php wp_list_pages('title_li='); ?>
- </ul>
- <h3>By Month:</h3>
- <ul>
- <?php wp_get_archives('type=monthly'); ?>
- </ul>
- <h3>By Category:</h3>
- <ul>
- <?php wp_list_categories('sort_column=name&title_li='); ?>
- </ul>
- </div>
- <div class="sitemapr">
- <h3>Last 50 posts:</h3>
- <ul>
- <?php wp_get_archives('type=postbypost&limit=50'); ?>
- </ul>
- </div>
- </div>
- <?php } }
- function archive_read_more() {
- if (is_archive()) { ?>
- <p><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">Read the full article...</a></p>
- <?php }
- }
- add_action('thesis_hook_after_post', 'archive_read_more');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement