Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #23622

    Hi,

    I’m looking to create a portfolio page on my website. I understand that I must create individual ‘portfolio posts’ in categories, add these categories to the correct portfolio page and finally use a portfolio template on a page, no drama with this process.

    What I want is to turn off the link between the ‘post title’ and the ‘read more’, so that the portfolio page will only open the videos in the lightbox and not link to the original posts when users click on the post title, description or read more.

    IE the only functionality of my portfolio page will be the videos opening in the lightbox – I want to remove any links to the original posts – I don’t want these to be visible.

    Apologies if this has been covered before, have searched the forums but haven’t found what I’m after.

    #120549

    Hi,

    Open template-portfolio.php, then find this code

    <h3 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h3>
    <?php the_excerpt(); // small excerpt of the post content ?>

    <a href="<?php echo get_permalink(); ?>" class="more-link">Read more</a>

    Replace it with

    <h3 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3>
    <?php the_excerpt(); // small excerpt of the post content ?>

    Cheers,

    Ismael

    #120550

    Ismael you are a legend, thank you.

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

The topic ‘Portfolio open images/videos but not link to posts’ is closed to new replies.