Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #10537

    Hi all!!

    Where is the code that handles the link to the next/previous portfolio item? The idea is to add and image to the tag , I know the variable is $link but I don’t know where takes its value.

    Thanks in advance.


    If you are talking about the next and prev links that show up on single portfolio pages, right under the image:

    you need to open includes/loop-portfolio-single.php

    previous_post_link and next_post_link are the wordpress functions that generate those links. I am not sure what you are trying to accomplish but here is a link tot the wordpress documentation, will make it easier to modify:


    Sorry, but I think I don’t understand. I have this line of code

    <?php previous_post_link('<span class="previous_post_link"><img src="/wp-content/themes/angular/images/layout/buttonPrevious16.png" alt="" /><span class="post_link_text">'.__('').' %link </span></span>'); ?>

    But the link is only the text, not image. Is possible to change this?



    What you can do is to add a background image via css to the previous_post_link and next_post_link classes. However those background images can only be the same on every page. I dont think it would be possible to add changing images (for example thumbnails for the previous or next post)


    I’ve tried and it works. This is the css, for anyone is interested:

    .previous_post_link .post_link_text a{
    background-image: url('/wp-content/themes/angular/images/layout/buttonPrevious16.png');
    background-position: left;
    background-position-y: 4px;
    background-repeat: no-repeat;
    padding-left: 20px;
    .next_post_link .post_link_text a{
    background-image: url('/wp-content/themes/angular/images/layout/buttonNext16.png');
    background-position: right;
    background-position-y: 4px;
    background-repeat: no-repeat;
    padding-right: 20px;

    Thanks to support team.



    Glad that it works now. Topic closed.

    Best regards,


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

The topic ‘Edit links portfolio items’ is closed to new replies.