• How can I do this?

    I use a grid theme and I have no need for the link to the posts themselves, also when the images are clickable the plugin I use to show share buttons upon image hover doesn’t work.

    I’ve looked everywhere but can’t figure out how to do this. I just need the clickability off the images.

    Could anyone point me in the right direction?

    Here’s my content.php

    I think it might be something in here but I have no idea what

    ` <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <?php if( in_array(get_post_format(), array(‘video’, ‘audio’, ‘gallery’, ‘link’)) || has_post_thumbnail() ) : ?>
    <div class=”featured”>
    <?php
    if( has_post_format(‘video’) || has_post_format(‘audio’)){
    pukka_media();
    }
    /*
    elseif( has_post_format(‘gallery’) ){
    echo ‘‘;
    the_post_thumbnail(‘thumb-single’);
    echo ‘
    ‘;
    }
    */
    elseif( has_post_format(‘link’) ) {
    echo ‘ID, ‘_pukka_link’,true) .'” target=”_blank”>’;
    the_post_thumbnail(‘thumb-single’);
    echo ‘
    ‘;
    }
    elseif( has_post_thumbnail() ) {
    the_post_thumbnail(‘thumb-single’);
    echo ”;
    }
    ?>
    <span class=”stripe”></span>
    </div> <!– .featured –>
    <?php endif; //<?php if( has_post_format(array(‘video’, ‘audio’, ‘gallery’)) || has_post_thumbnail() ) : ?>

    <div class=”content-wrap”>
    <h1 class=”page-title”>
    <?php if( has_post_format(‘link’) ) : ?>
    ID, ‘_pukka_link’,true); ?>” target=”_blank”>
    <?php else : ?>
    <?php endif; ?>
    <?php the_title(); ?>

    </h1>
    <div class=”entry-meta”>
    <?php pukka_entry_meta(); ?>
    </div> <!– .entry-meta –>
    <div class=”entry-content”>
    <?php the_content(); ?>
    </div><!– .entry-content –>
    </div> <!– .content-wrap –>
    </article>

Viewing 3 replies - 1 through 3 (of 3 total)
  • unfortunately, your code got broken when it was posted;

    please review http://codex.wordpress.org/Forum_Welcome#Posting_Code

    what theme are you using?

    Thread Starter waxaddict

    (@waxaddict)

    Hi,

    I’m using the UberGrid theme.

    I removed any href lines in content.php but to no avail. I’ve been trying for days now, it’s driving me crazy!

    Here’s the code as of now, hopefully it’ll display ok.

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    	<?php if( in_array(get_post_format(), array('video', 'audio', 'gallery', 'link')) || has_post_thumbnail() ) : ?>
    		<div class="featured">
    		<?php
    			if( has_post_format('video') || has_post_format('audio')){
    				pukka_media();
    			}
    			/*
    			elseif( has_post_format('gallery') ){
    				the_post_thumbnail('thumb-single');
    			}
    			*/
    			elseif( has_post_format('link') ) {
    				the_post_thumbnail('thumb-single');
    			}
    			elseif( has_post_thumbnail() ) {
    				the_post_thumbnail('thumb-single');
    			}
    		?>
    		<span class="stripe"></span>
    		</div> <!-- .featured -->
    	<?php endif; //<?php if( has_post_format(array('video', 'audio', 'gallery')) || has_post_thumbnail() ) : ?>
    
    	<div class="content-wrap">
    		<h1 class="page-title">
    			<?php if( has_post_format('link') ) : ?>
    			<?php else : ?>
    			<?php endif; ?>
    			<?php the_title(); ?>
    		</a>
    		</h1>
            <div class="entry-meta">
               <?php pukka_entry_meta(); ?>
            </div> <!-- .entry-meta -->
    		<div class="entry-content">
    			<?php the_content(); ?>
    		</div><!-- .entry-content -->
    	</div> <!-- .content-wrap -->
    </article>

    your best option might be to contact your theme’s developer or seller for support; http://themeforest.net/item/ubergrid-responsive-grid-wordpress-theme/6383212/support

    this forum can only fully support themes from https://wordpress.org/themes/

    http://codex.wordpress.org/Forum_Welcome#Commercial_Products

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

The topic ‘Make featured image thumbnail unclickable.’ is closed to new replies.