ThemeShaper Forums » Thematic

[closed]

Adding thematic_navigation_above to all pages

(2 posts)
  • Started 9 years ago by eastjane
  • Latest reply from em hr
  • This topic is not resolved
  1. eastjane
    Member

    Hi,

    I am trying to add thematic_navigation_above to all pages. I did the following in thematic\page.php and it worked:

    <?php
    
                // calling the widget area 'page-top'
                get_sidebar('page-top');
    
                // create the navigation above the content
                thematic_navigation_above();
    
                the_post();
    
    ?>

    However I am developing a child theme and would prefer not making changes to thematic original code. Is there a way I can achieve this result by adding something in my child theme?

    Thank you,
    East Jane

    Posted 9 years ago #
  2. Hi Jane,

    Try the one of these two functions that suits your purpose:

    // Use if using page template as an archive that aggregates posts
    function nav_above_pages() {
    	thematic_navigation_above();
    }
    add_action('thematic_belowpagetop','nav_above_pages');

    or

    // Use to add pagenation links above content
    function pagination_above_page_content() {
    	wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'thematic'), "</div>\n", 'number');
    }
    add_action('thematic_belowpagetop','pagination_above_page_content');

    if you look in thematic sidebar templates you'll see the various hooks that you can use such as the one i used above.

    -Gene

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.