New Landing How can we help? Themeforest Theme Support Dante Portfolio – Change the "Related Projects" title

Viewing 2 posts - 16 through 17 (of 17 total)
  • Posted in: Dante
  • #261959
    nsontag
    Member
    Post count: 2

    Hi,

    I’m trying to make this change in Dante v 3.2.6, but I am not able to find the above referenced code anywhere in single-portfolio.php.

    Is this solution still valid? Am I missing something?

    Thanks!

    #262300
    David Martin – Support
    Moderator
    Post count: 20834

    Install and active the supplied child theme, inside functions.php add this code and change Related Projects to your desired text.

    	if ( !function_exists( 'sf_portfolio_related' ) ) {
    		function sf_portfolio_related() {
    			global $post;
    			$related =  sf_portfolio_related_posts( $post->ID );
    			if ($related->have_posts()) { 
    		?>
    		
    			<div class="container">
    			
    				<div class="related-projects clearfix">
    					
    					<h3 class="spb-heading"><span><?php _e("Related Projects", "swiftframework"); ?></span></h3>
    					
    					<ul class="row">
    					<?php while ( $related->have_posts() ): $related->the_post(); ?>
    					    	<?php
    					    		$item_title = get_the_title();
    					    		$thumb_image = "";
    					    		$thumb_image = sf_get_post_meta($post->ID, 'sf_thumbnail_image', true);
    					    		if ($thumb_image == "") {
    					    			$thumb_image = get_post_thumbnail_id($post->ID);
    					    		}
    					    		$thumb_img_url = wp_get_attachment_url( $thumb_image, 'full' );
    					    		if ($thumb_img_url == "") {
    					    			$thumb_img_url = "default";
    					    		}
    					    		$image = sf_aq_resize( $thumb_img_url, 300, 225, true, false);
    					    	?>
    					    	
    					        <li class="col-sm-3">
    					        	<figure class="animated-overlay">
    					        		<img src="<?php echo $image[0]; ?>" width="<?php echo $image[1]; ?>" height="<?php echo $image[2]; ?>" alt="<?php echo $item_title; ?>" />
    					        		<a href="<?php the_permalink(); ?>"></a>
    					        		<figcaption>
    					        			<div class="thumb-info">						
    					        				<h4><?php echo $item_title; ?></h4>
    				        					<i class="ss-navigateright"></i>
    					        			</div>
    					        		</figcaption>
    					        	</figure>
    					        </li>
    					    <?php endwhile; ?>
    					</ul>
    					
    				</div>
    				
    				</div>
    			
    			<?php } ?>		
    								
    		<?php }
    	}
Viewing 2 posts - 16 through 17 (of 17 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register