• I was wondering if anyone knows how to link the images in the portfolio instead of linking the title of the project? Or maybe linking the coloured bar under the project thumbnail — i.e the title bg.

    The theme author told me, that it has to be done in: maxus/templates/portfolio-column.php but they wont tell me how 🙁

    Can anyone help me??

    The theme is: http://themeforest.net/item/maxus-a-simple-clean-wordpress-theme-/5091834
    My site is: http://impressdesign.dk/wordpress/

    The code for the portfolie-column.php:

    <?php
    /**
     * @package by HawkTheme
     * @auther: Hawk
     * @Portfolio Column
    */
    ?>
    <?php global $portfolio_query, $shortcode_values, $post; ?>
    
    <?php
    	//Get Column
    	switch($shortcode_values['columns'])
    	{
    		case 2: $col = 'six'; $desc = 300; break;
    		case 3: $col = 'four'; $desc = 120; break;
    		case 4: $col = 'three'; $desc = 40; break;
    	}
    ?>
    
    <ul class="work-items post-lists format-list clearfix">
    <?php
    	while( $portfolio_query->have_posts() ) : $portfolio_query->the_post();
    
    	//Get the meta
    	$type = get_meta_option('portfolio_type');
    	$link_target = get_meta_option('portfolio_link');
    	$custom_link = get_meta_option('portfolio_custom_link');
    
    	if($link_target == 'custom' && $custom_link)
    	{
    		$link = $custom_link;
    		$type = 'link';
    	}
    	else
    	{
    		$link = get_permalink();
    	}
    
    	//Get the terms
    	$sort_classes = '';
    	$terms = get_the_terms( $post->ID, 'portfolio-category' );
    	if ($terms && ! is_wp_error($terms))
    	{
    		$terms_array = array();
    		foreach ( $terms as $term )
    		{
    			$terms_array[] = 'term-'.$term->term_id;
    		}
    		$sort_classes = join( ' ', $terms_array );
    	}
    
    	//Get item class
    	$post_item_class = 'class="item post-item post-fade column '.$col.' '.$sort_classes.'"';
    ?>
    <li <?php echo $post_item_class; ?>>
    	<div class="inner">
    
    	<?php if(has_post_thumbnail()) : ?>
    	<figure class="featured-image">
    		<?php echo theme_get_the_post_thumbnail($post->ID, 'column', get_the_title(), get_the_title()); ?>
    		<div class="overlay"></div>
    		<div class="hover-info">
    			<div class="desc"><?php echo theme_description($desc); ?></div>
    			<?php echo get_the_term_list( $post->ID, 'portfolio-category', '<div class="cats meta">', ' · ', '</div>' ); ?>
    		</div>
    	</figure>
    	<?php endif; ?>
        <header class="item-header">
    		<h3 class="title"><a href="<?php echo $link; ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
            </header>
    
    	</div>
    </li>
    <?php endwhile; ?>
    </ul>
    
    <?php if($shortcode_values['paging'] == 'yes') { get_pagination($portfolio_query); } ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How do I make portfolio image links in Maxus theme?’ is closed to new replies.