Gallery Posts Content to Show Excerpt & Link to Full Post

In Karma the Portfolio/Gallery Posts do not link to the full Posts. Also the WordPress “More” tag does not work in Gallery. The Templates are coded to display the full Posts content. If you prefer to display a short excerpt with a link to the full Post for each Gallery item bellow are the instructions.

You will need to access the Portfolio Template file you wish to use via Appearance > Editor or via FTP, in /Karma/ folder.

Open the Template file and look for the following code around line 81 (depending on the file you choose)

<div class="portfolio_content"> <?php the_title('<h3>', '</h3>'); the_content(); ?> </div><!-- end portfolio_content --> 

And replace the above code with the following:

<div class="portfolio_content"> <?php the_title('<h3>', '</h3>'); limit_content(30, true, ''); ?> <a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><span>Read More →</span></a> </div><!-- end portfolio_content --> 

The Gallery page will now display each item with a 30 word excerpt and a link to the full Post.

Please note: Customize “30” as per your excerpt length needs and the “Read More” text.
This customization applies only to Portfolio Templates in Karma v3.0.4 and older.
Full instructions on how to setup the Gallery Pages in Karma, please view the Training Video:
http://help.truethemes.net/videos/

This customization is not possible in Karma 4.0.+ Filterable Gallery Template.
It is only possible using the Portfolio feature.

(click screenshot for full-size view)