Hi everyone,
I am trying to remove the default "Older Posts" text and replace it with "More Products" on my category archive pages. I'm using this filter:
// Remove default thematic_nav_below
function remove_thematic_nav_below() {
remove_action('thematic_nav_below','thematic_navigation_below',2);
}
add_action('init','remove_thematic_nav_below');
function childtheme_thematic_nav_below() {
if (is_single()) { ?>
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php thematic_previous_post_link() ?></div>
<div class="nav-next"><?php thematic_next_post_link() ?></div>
</div>
<?php
} else { ?>
<div id="nav-below" class="navigation">
<?php if(function_exists('wp_pagenavi')) { ?>
<?php wp_pagenavi(); ?>
<?php } else { ?>
<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> More products', 'thematic')) ?></div>
<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'thematic')) ?></div>
<?php } ?>
</div>
<?php
}
}
add_action('thematic_navigation_below', 'childtheme_thematic_nav_below', 2);
This is adding "More Products" the bottom of my category archive page, but the default "Older posts" is still there also. Am I not removing it correctly?
Any advice would be greatly appreciated.