→→ Please check out our new WP Theme: Navian - Responsive Multi-Purpose WordPress Theme ←←
- In case you can't login to submit a ticket, please hard refresh the browser and try again.
If the problem persists, please submit your questions via THEMELOGI profile page instead.
- To update the theme or plugins, please have a look at Theme & Plugin Updates, and here is the Bundled Plugin License information.
- If you couldn't import demo content or you got the message "Failed to import", please see our FAQs page. Thank you :)

Tickets Tickets Wanium Show Portfolio Excerpt

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10389

    Hi, I wonder how to add excerpt or description on portfolio archive after the thumbnail image?

    Thank you.

    #10399
    Danny
    Supporter

    Hi there,

    Thanks for writing in!

    To resolve this issue, please follow the steps below:

    1. Open up the tlg_cpt.php file in wp-content/plugins/tlg_framework/includes folder, find the code below (around line 33) :

    'supports' => array( 'title', 'editor', 'thumbnail', 'post-formats', 'comments' ),

    … and change it into this:

    'supports' => array( 'title', 'editor', 'thumbnail', 'post-formats', 'comments', 'excerpt' ),

    2. Our theme comes with multiple portfolio layout, so for example, to add the excerpt below the portfolio thumbnail in portfolio archive page (Grid Full 3 Columns), please open up the inc-full-grid-3col.php file in themes/wanium/templates/portfolio folder, find the code below (at bottom of the file) :

    echo !$portfolio_link['lightbox'] ? wp_kses($portfolio_link['sufix'], wanium_allowed_tags()) : '';

    … and change it into this:

    echo !$portfolio_link['lightbox'] ? wp_kses($portfolio_link['sufix'], wanium_allowed_tags()) : '';
    global $post; echo '<div>'.$post->post_excerpt.'</div>';

    3. Then you can go to your portfolio editor, scroll to bottom and add your excerpt in there.

    P.S: You can do the same for other portfolio layouts in the themes/wanium/templates/portfolio folder (inc-…php files).

    Hope this helps,
    Danny

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.