Title: Remove Item Hyper Link
Last modified: August 21, 2016

---

# Remove Item Hyper Link

 *  [nobodymove](https://wordpress.org/support/users/nobodymove/)
 * (@nobodymove)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/remove-item-hyper-link/)
 * Hi,
 * This is a follow up on my previous question that you marked resolved: [http://wordpress.org/support/topic/no-hyper-link?replies=3](http://wordpress.org/support/topic/no-hyper-link?replies=3)
 * Can you please help direct me to the correct template file and piece of code 
   that needs to be removed so that individual portfolio items do not link anywhere?
   I do not know php that well, and have tried unsuccessfully to guess and remove
   various pieces of code. Any additional direction you could give would be greatly
   appreciated.
 * [http://wordpress.org/plugins/otw-portfolio-light/](http://wordpress.org/plugins/otw-portfolio-light/)

Viewing 1 replies (of 1 total)

 *  [Cashlin](https://wordpress.org/support/users/cashlin/)
 * (@cashlin)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/remove-item-hyper-link/#post-4376542)
 * Hmm well if you remove the clickability of a thumbnail, then you won’t be able
   to click to view any single portfolio entry, since the title itself sits on top
   of the thumbnail.
 * But you can move the title down and have the title link to a single portfolio
   entry…
 * The two template files to edit for this are otw-template-paginated and otw-template-
   filterable.
 * Find this code (it is the same in both files):
 *     ```
       <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="otw-portfolio-item-link">
                                   		<div class="image">
                                       		<?php if ( has_post_thumbnail()) { ?>
                                       		    <?php the_post_thumbnail('otw-portfolio-medium'); ?>
                                       		<?php } else { ?>
                                                   <div style="background:url(<?php echo plugins_url( '/otw-portfolio-light/images/pattern-1.png' ) ?>);width:<?php echo get_option('otw_pfl_thumb_size_w', '303'); ?>px;height:<?php echo get_option('otw_pfl_thumb_size_h', '210'); ?>px" title="<?php _e( 'No Image', 'otw_pfl' ); ?>"></div>
                                               <?php } ?>
                                   		</div>
                                   		<div class="title">
                                   			<h3><?php the_title(); ?></h3>
                                   		</div>
                                   		<div class="text entry-content">
                                   			<?php the_excerpt(); ?>
                                   		</div>
                                   	<span class="shadow-overlay hide-for-small"></span></a>
       ```
   
 * Modify it like this to move some of the items around. This change should move
   the title and excerpt down below the portfolio, link the title to a single portfolio
   entry page, and unlink the thumbnail.
 *     ```
       <div class="image">
                                       		<?php if ( has_post_thumbnail()) { ?>
                                       		    <?php the_post_thumbnail('otw-portfolio-medium'); ?>
                                       		<?php } else { ?>
                                                   <div style="background:url(<?php echo plugins_url( '/otw-portfolio-light/images/pattern-1.png' ) ?>);width:<?php echo get_option('otw_pfl_thumb_size_w', '303'); ?>px;height:<?php echo get_option('otw_pfl_thumb_size_h', '210'); ?>px" title="<?php _e( 'No Image', 'otw_pfl' ); ?>"></div>
                                               <?php } ?>
                                   		</div>
                                   	<span class="shadow-overlay hide-for-small"></span>
                                   		<div class="title">
                                   			<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="otw-portfolio-item-link"><h3><?php the_title(); ?></h3></a>
                                   		</div>
                                   		<div class="text entry-content">
                                   			<?php the_excerpt(); ?>
                                   		</div>
       ```
   
 * If you want NO link whatsoever, no title, no excerpt, remove those items so your
   code looks like this:
 *     ```
       <div class="image">
                                       		<?php if ( has_post_thumbnail()) { ?>
                                       		    <?php the_post_thumbnail('otw-portfolio-medium'); ?>
                                       		<?php } else { ?>
                                                   <div style="background:url(<?php echo plugins_url( '/otw-portfolio-light/images/pattern-1.png' ) ?>);width:<?php echo get_option('otw_pfl_thumb_size_w', '303'); ?>px;height:<?php echo get_option('otw_pfl_thumb_size_h', '210'); ?>px" title="<?php _e( 'No Image', 'otw_pfl' ); ?>"></div>
                                               <?php } ?>
                                   		</div>
       ```
   
 * Now I have not tried this myself!!! Let me know if it does not work for you.

Viewing 1 replies (of 1 total)

The topic ‘Remove Item Hyper Link’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/otw-portfolio-light_959699.svg)
 * [OTW Portfolio Light](https://wordpress.org/plugins/otw-portfolio-light/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/otw-portfolio-light/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/otw-portfolio-light/)
 * [Active Topics](https://wordpress.org/support/plugin/otw-portfolio-light/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/otw-portfolio-light/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/otw-portfolio-light/reviews/)

## Tags

 * [OTW](https://wordpress.org/support/topic-tag/otw/)

 * 1 reply
 * 2 participants
 * Last reply from: [Cashlin](https://wordpress.org/support/users/cashlin/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/remove-item-hyper-link/#post-4376542)
 * Status: not resolved