Okay
  Public Ticket #852822
After update problem with showing the exerpt below the title of a portfolio item
Closed

Comments

  •  4
    Martin started the conversation

    Hello!

    I am using Kalium since a while and I am still that happy.

    I was using a modification of the portfolio-loop-item-type-2.php to show the exerpt of a portfolio item below the title.

    You already helped me with that at an earlier time with this:

    Modification of the portfolio-loop-item-type-2.php:

    "Hi Martin

    In the same file where you have added that code, please try to change with this one:

    <?php if( get_the_excerpt() ) { ?>
    <p><?php echo $post->post_excerpt; ?></p>
    <?php } ?> 
    

    So the basic structure is:

    <div class="info">
        <h3>
            <a href="<?php echo esc_url($portfolio_item_href); ?>" if=""> target="_blank"<?php endif; ?>><?php echo esc_html($portfolio_item_title); ?></a>
        </h3>
        <?php if( get_the_excerpt() ) { ?>
        <p><?php echo $post->post_excerpt; ?></p>
        <?php } ?> 
    </div>
    

    This worked on my side. I hope it will work for you as well.

    Arlind "



    After the Update I tried to get this again working, but it doesn't. May be because you changed the portfolio code structure.

    Could you please again help me out with thisand show me where to change the code to get the exertp shon below the title?

    Thanks so much in advance!

    All the best!

    Martin



  • [deleted] replied

    Hi Martin,

    Thanks for your kind words, I am happy that you still use our theme.

    Yes, the portfolio code structure has changed in 1.9 but the markup does not have drastic changes and I will explain how to add the excerpt in portfolio item type #2.

    1. Open wp-content/themes/kalium/tpls/portfolio-loop-item-type-2.php in your server.

    2. Go to line 222 and add the below code:

    <?php global $post; if( get_the_excerpt() ) { ?>
    <p><?php echo $post->post_excerpt; ?></p>
    <?php } ?>
    Like shown here:


    (view large version)

    Hopefully this will work for you.

    Cheers

  •  4
    Martin replied

    Hi Arlind!


    Again you helped me out, let me say thank you so much for this!

    It works like a charm and I know what to change again after the next update :)

    As I already wrote, Kalium is the best theme I ever found, but the most impressive thing about this theme is you and your perfect service and help with everything!

    Let me say thank you so much again!


    All the best!

    Martin


  • [deleted] replied

    Thank you so much dear Martin, I am really pleased to hear such warm response. 

    Anytime you need help, feel free to write here, you are more than welcomed.

    Have a great day buddy.