• Hi

    So this tells the featured image link whether it should open in ‘Full Post’ or just a lightbox ‘image’.

    // Meta Box
    	function cudazi_thumb_linksto(){
    	  global $post;
    	  $custom = get_post_custom($post->ID);
    	  $featured_image_link_to = $custom["featured_image_link_to"][0];
    	  $featured_image_link_to_url = $custom["featured_image_link_to_url"][0];
    	  ?>
    	  <p><?php _e('Choose on a post by post basis where the featured image thumbnails to link to.','cudazi'); ?></p>
    	  <p>
    	  <select name="featured_image_link_to">
    	  	<option value=''><?php _e('Default','cudazi'); ?></option>
    	  	<?php
    	  		$featured_image_link_to_options = array(
    	  			'post' => __('Full Post','cudazi'),
    	  			'image' => __('Image','cudazi')
    	  		);
    			foreach ( $featured_image_link_to_options as $k => $v ) {
    				if ( $k == $featured_image_link_to ) { $sel = " selected='selected'"; }else{ $sel = ""; }
    			  	echo "<option " . $sel . " value='". $k ."'>" . $v . "</option>";
    			}
    	  	?>
    		</select>
    		<em><?php _e('or','cudazi'); ?></em> <?php _e('Custom URL:','cudazi'); ?> <input type="text" style='width:300px; border-style:solid; border-width:1px;' name="featured_image_link_to_url" value="<?php echo $featured_image_link_to_url; ?>" /> <?php _e('(Full URL - Video, External Page, etc...)','cudazi'); ?></p>
    	  <?php
    	}

    Since I have no deep understanding of PHP, I have no idea how to comepletely turn the link off. I’d like to add an [Coming soon] option (along ‘post’ and ‘image’) so the image would be unclickable (without any ‘a href’). Maybe I could cheat and hide it with CSS, but I don’t even know how to add a class to that image/meta box/function.

    Any ideas?

Viewing 16 replies (of 16 total)
  • Thread Starter khanate

    (@khanate)

    This is way to complicated for me.

    What if I gave you 15 euros, would you do this for me?
    The [free] cudazi theme is up there, all I need is to implement that ‘coming soon/disable link’ thing into it.

    What do you say? ??

Viewing 16 replies (of 16 total)
  • The topic ‘How to disable Featured Image Link’ is closed to new replies.