Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.

    #68409

    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:

    http://codex.wordpress.org/Function_Reference/next_posts_link

    #68410

    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?

    Thanks.

    #68413

    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)

    #68414

    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.

    #68415

    Hi!

    Glad that it works now. Topic closed.

    Best regards,

    Peter

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

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