July 6, 2012 at 8:25 pm #14034
Hello, I am very happy with the coalition theme! And I have one question:
I am missing a previous/next link in the portfolio items and – what I find more important – a link to go back to the main page to land exactly where the user clicked the last portfolio item and not always at the top of the portfolio items.
Where do I need to place the code to let the link appear under the autor´s name?
Thank you for answers on these topics.
Greetings und Grüße by singitloudJuly 6, 2012 at 8:59 pm #81827
Do you have Coalition setup as a standard WordPress theme or one-page portfolio?
MyaJuly 7, 2012 at 7:54 am #81828
I have set it up as a one page portfolio.
Thank you for taking care of my requests.
Greetings singitloudJuly 7, 2012 at 8:22 am #81829
I think you’re no.1 concern is quite complicated because when a user click “Projekte” he/she will be redirected to http://vocc.de/#projekte. Even if you scroll down, you will still be on that part of the page. So, when you click on a specific portfolio post, the browser will only remember that you are on http://vocc.de/#projekte before you went on that single portfolio post.
No.2 which is a previous and next link for portfolio post is quite doable. Just go to includes folder and open loop-index.php. Find this code
if(has_tag() && is_single())
echo '<span class="blog-tags">';
echo the_tags('<strong>'.__('Tags: ','avia_framework').'</strong><span>');
Below put this snippet
<div class='post_nav extralight-border'>
<?php previous_post_link('<span class="previous_post_link">← %link </span><span class="post_link_text">'.__('(previous entry)'))."</span>"; ?>
<?php next_post_link('<span class="next_post_link"><span class="post_link_text">'.__('(next entry)').'</span> %link →</span>'); ?>
</div> <!-- end navigation -->
You still need to do the styling on your custom.css
IsmaelJuly 7, 2012 at 8:24 am #81830
I suggest you do this. This will give users the ability to go directly to that particular portfolio posts.
but in your case you need to target each portfolio items which is quite a hassle to do.
IsmaelJuly 7, 2012 at 2:23 pm #81831
The topic ‘Go-back-in-history-link from portfolio item to main page’ is closed to new replies.