Title: modifying output template
Last modified: August 21, 2016

---

# modifying output template

 *  Resolved [tkhan](https://wordpress.org/support/users/tkhan/)
 * (@tkhan)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/modifying-output-template/)
 * hi dinamiko,
 * Great plugin, I am trying to add a like button under each of the portfolio thumbnails.
   I have tried editing class-dportfolio-ptype.php
 * `$content .=if( function_exists('zilla_likes') ) zilla_likes();`
    results a syntax
   error, and `$content .=zilla_likes();` displays the heart icons before the dportfolio-
   container-main div.
 * Any help would be appreciated
 * Tkhan
 * [https://wordpress.org/plugins/dportfolio/](https://wordpress.org/plugins/dportfolio/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/modifying-output-template/#post-5165604)
 * Hi tkhan, sorry for the delay.
 * I don’t know nothing about zilla_likes, but maybe you can put first the result
   of zilla_likes() in a variable and test the result, something like this:
 *     ```
       if( function_exists('zilla_likes') ) {
       $zilla_likes = zilla_likes();
       } else {
       $zilla_likes = '';
       }
   
       echo $zilla_likes; // here you test the value $zilla_likes
       ```
   
 * if $zilla_likes has some value, add to the $content variable:
 * $content .= $zilla_likes;
 * try it and tell me if works, thanks.
 *  Thread Starter [tkhan](https://wordpress.org/support/users/tkhan/)
 * (@tkhan)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/modifying-output-template/#post-5165629)
 * Hi dinamiko,
 * Sorry for not responding I overlooked the email, the function works but the like
   icons are still being output before the actual portfolio items, have got a feeling
   it may be a jquery. I have stopped working on it for the moment. will mark as
   resolved and get back to you at a later date.
 * tkhan
 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/modifying-output-template/#post-5165637)
 * Hi tkan,
    I marked it as resolved but if you like I can reopen it in the future,
   no problem 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘modifying output template’ is closed to new replies.

 * ![](https://ps.w.org/dportfolio/assets/icon-256x256.jpg?rev=1306960)
 * [DPortfolio](https://wordpress.org/plugins/dportfolio/)
 * [Support Threads](https://wordpress.org/support/plugin/dportfolio/)
 * [Active Topics](https://wordpress.org/support/plugin/dportfolio/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dportfolio/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dportfolio/reviews/)

## Tags

 * [modify template](https://wordpress.org/support/topic-tag/modify-template/)

 * 3 replies
 * 2 participants
 * Last reply from: [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/modifying-output-template/#post-5165637)
 * Status: resolved