Unfortunately due to other commitments, we are no longer able to provide support for these themes.

All our themes are now free and can be downloaded by anyone to use/modify however they wish.

We want to thank all our users for their support over the years. All the best in 2020 and beyond.

Portfolio Carousel Category

This might be outside of the scope of what you can offer for support, so if that is the case, I totally understand.

I want to remove the hyperlink from the category on the Portfolio Carousel. See screenshot here. I think I have identified the piece of code I need to edit, but I don't know what I need to change to remove the link (3rd line from the bottom?):

<div class="portfolio-item<?php if ($i == 4) echo " last"; ?>"> <?php $terms = get_the_terms($post->ID, 'portfolio-category'); if (has_post_thumbnail( $post->ID )) { echo '<div class="portfolio-thumb"><a href="'.get_permalink().'" title="'.the_title_attribute('echo=0').'">'.get_the_post_thumbnail($post->ID, 'featured-portfolio-thumb' ).'</a></div>'; } echo '<h3 class="title"><a href="'.get_permalink().'">'.get_the_title().'</a></h3>'; echo get_the_term_list( $post->ID, 'portfolio-category', '<p class="terms">', ', ', '</p>' ); ?> </div>
Any help you can provide would be awesome! Thanks!


  • Options
    Mark_HodderMark_Hodder Administrator, Lifetime Member
    I haven't tested this but:

    echo get_the_term_list( $post->ID, 'portfolio-category', '<p class="terms">', ', ', '</p>' );

    could be changed to:
    $terms = get_the_term_list( $post->ID, 'portfolio-category', '<p class="terms">', ', ', '</p>' );
    $terms = strip_tags( $terms,  '<p>' );
    echo $terms;
    Need Additional Help?
    - Check out the Resource Center for helpful tutorials and hints.

This discussion has been closed.