Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #16496

    I would like to move the Previous / Next Item links that show up at the bottom of portfolio entries, like this one:

    from the bottom of the portfolio contents to the top, without interfering with the left side.

    I found the code in the loop-portfolio-single.php file, but had a hard time figuring out where to move it to. When I moved it to below <!–end meta info–> it did move to the top, but messed with the layout.

    Thanks for any help you can give.


    I’d also like to replace the portfolio category links on the left with a “back” link that returns them to the category. I do not like the default links because they go to a portfolio archive and I don’t know how to control that archive:

    I would rather they go back to the category page that I set up:

    A simple “Back to Category” button should do it, if you can point me in the right direction.



    First find this code on loop-portfolio-single.php

    <div class='post_nav'>

    <div class='previous_post_link_align'>
    <?php previous_post_link('<span class="previous_post_link">&larr; %link </span><span class="post_link_text">'.__('(previous entry)','avia_framework'))."</span>"; ?>
    <div class='next_post_link_align'>
    <?php next_post_link('<span class="next_post_link"><span class="post_link_text">'.__('(next entry)','avia_framework').'</span> %link &rarr;</span>'); ?>
    </div> <!-- end navigation -->

    Above it place this code.

    <?php echo "<div class='nine units'>"; ?>

    Now, cut all of it and paste it above this code.


    echo "<div class='nine units'>";

    echo "<div class='hero-text entry-content'>";
    echo "<span class='seperator extralight-border'></span>";
    echo "</div>";

    //display the actual post content
    the_content(__('Read more &rarr;','avia_framework'));
    echo avia_flag(false);

    After that find this line of code

    echo "<div class='nine units'>";

    Remove it.




    Almost Ismael – The navigation did move, but I received an error. See screenshot posted here:

    Also – any ideas on changing the left hand links to “back” links and removing the category links?

    Below I’ve pasted the section of Code I modified:

    <?php echo “<div class=’nine units’>”; ?>

    <div class=’post_nav’>

    <div class=’previous_post_link_align’>

    <?php previous_post_link(‘<span class=”previous_post_link”>← %link </span><span class=”post_link_text”>’.__(‘(previous item)’,’avia_framework’)).”</span>”; ?>


    <div class=’next_post_link_align’>

    <?php next_post_link(‘<span class=”next_post_link”><span class=”post_link_text”>’.__(‘(next item)’,’avia_framework’).'</span> %link →</span>’); ?>


    </div> <!– end navigation –>



    echo “<div class=’hero-text entry-content’>”;


    echo “<span class=’seperator extralight-border’></span>”;

    echo “</div>”;


    //display the actual post content

    the_content(__(‘Read more →’,’avia_framework’));

    echo avia_flag(false);


    </div> <!– end nine units –>


    </div><!–end post-entry–>



    Replace following line:







    This worked – Thanks for the correction. Any ideas about removing or changing the links that show up on the left under the meta data? Right now it defaults to category links that go to archive pages. I don’t want those. I’m hoping I can add a static link to all pages that goes back to whatever page they visited just before landing on this one. Is this possible?



    If I understand you corectly you want the <- link to be static and always return to the previous page in the browser history.

    Please make a backup and then open up single.php at the base of the theme and on line 49 (around there) , please find a block that looks like this :

    <?php previous_post_link('<span class="previous_post_link">&larr; %link </span><span class="post_link_text">'.__('(previous entry)')."</span>"); ?>

    and replace it with the block below

    <span class="previous_post_link">&larr; <a href="javascript:history.back();">Return to Previous Page</a></span>




    No, I don’t think that’s what I need. I do not want to change the next / previous links. I want to change the category links below the meta data in the left column. For example, the post I referenced has links to “manuals” and “spotlights & specials” because I’ve categorized them as these types of portfolio entries.

    However, I don’t like the formatting of these archive pages at all. Instead I’d like it to just go back to the previous page, whatever that page was.

    Is that your understanding of what i asked?


    I actually started a new thread for this question: (Purchase code hidden if logged out) -view

    Since it is a separate, but related issue to the original.

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Portfolio Navigation Links’ is closed to new replies.