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

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

    http://landlordsource.com/product/policy-procedures-property-management/

    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.

    #91712

    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:

    http://landlordsource.com/portfolio_entries/property-management-manuals/

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

    http://landlordsource.com/policy-and-procedures-manuals/

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

    #91713

    Hi,

    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>
    <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>
    </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.

    <?php

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

    if(avia_post_meta('hero'))
    {
    echo "<div class='hero-text entry-content'>";
    the_excerpt();
    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.

    Regards,

    Ismael

    #91714

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

    http://lsnewsletters.com/screenshots/Propulsion1.jpg

    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>

    <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>

    </div> <!– end navigation –>

    if(avia_post_meta(‘hero’))

    {

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

    the_excerpt();

    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>

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

    #91715

    Hey!

    Replace following line:

    if(avia_post_meta('hero'))

    with:

    <?php
    if(avia_post_meta('hero'))

    Regards,

    Peter

    #91716

    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?

    #91717

    Hi,

    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>

    Thanks,

    Nick

    #91718

    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.

    http://landlordsource.com/product/policy-procedures-property-management/

    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?

    #91719

    I actually started a new thread for this question:

    http://www.kriesi.at/support/topic/category-links-in-single-portfolio-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.