WordPress.org

Ready to get started?Download WordPress

Forums

OTW Portfolio Light
Remove Item Hyper Link (2 posts)

  1. nobodymove
    Member
    Posted 7 months ago #

    Hi,

    This is a follow up on my previous question that you marked resolved: 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/

  2. Cashlin
    Member
    Posted 5 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic