Forums

[Plugin: Smarter Navigation] Smarater Navigation used with Thematic theme (6 posts)

  1. Decoymer
    Member
    Posted 2 years ago #

    I'm not sure if it's possible, and not sure how to go about installing it on it. Any help would great!

  2. Decoymer
    Member
    Posted 2 years ago #

    A bit difficult of a question to answer, I know!

    I tried to replace the "thematic_next_post_link"s with "next_post_smart()" in the "content-extensions.php", same thing with previous. When I tried that out it made the page not work and go white, not sure if I did it right or what else I should do. :/

  3. Decoymer
    Member
    Posted 2 years ago #

    Anyone by any chance know anything about this?

  4. jonahcoyote
    Member
    Posted 2 years ago #

    Hey Decoymer, all you need to do is add this to functions.php:

    function remove_post_navigation() {
    	remove_action('thematic_navigation_below', 'thematic_nav_below', 2);
            remove_action('thematic_navigation_above', 'thematic_nav_above', 2);
    }
    add_action('init', 'remove_post_navigation');
    
    // Action to create the new below navigation
    function childtheme_nav_below() { ?>
    			<div id="nav-below" class="navigation">
    				<div class="nav-previous"><?php previous_post_smart('&laquo; %link', '%title', true, true); ?></div>
    				<div class="nav-next"><?php next_post_smart('&laquo; %link', '%title', true, true); ?></div>
    			</div>
    <?php }
    add_action('thematic_navigation_below', 'childtheme_nav_below', 2);
    
    // Action to create the new above navigation
    function childtheme_nav_above() { ?>
    			<div id="nav-above" class="navigation">
    				<div class="nav-previous"><?php previous_post_smart('&laquo; %link', '%title', true, true); ?></div>
    				<div class="nav-next"><?php next_post_smart('&laquo; %link', '%title', true, true); ?></div>
    			</div>
    <?php }
    add_action('thematic_navigation_above', 'childtheme_nav_above', 2);

    I hope that helps!

    - Jonah

  5. Decoymer
    Member
    Posted 2 years ago #

    Where in the functions.php do I add that? Also which one, the functions in the child theme or in parent theme? I tried adding it to the child theme and it ended up disabling my site.

  6. marpessa1
    Member
    Posted 1 year ago #

    I also need help with this, and the above code unfortunately did not work for me. Any help would be greatly appreciated as this appears to be an amazing plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic