Title: Add function in theme child
Last modified: August 31, 2016

---

# Add function in theme child

 *  [augusto.luna](https://wordpress.org/support/users/augustoluna/)
 * (@augustoluna)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/add-function-in-theme-child/)
 * Hi Alimir,
 * First let me say it’s a great plugin.
    I have a question that my limited coding
   skills cannot answer. I’m using Zephyr theme for an internal blog. In order to
   have the like button appear in every blog on the blog page view -masonry style-(
   where every post with it’s excerpt is shown) I added the small code line “<?php
   if(function_exists(‘wp_ulike’)) wp_ulike(‘get’); ?>” to the listing-post.php 
   file, under the Read More section.
 * It works.
    The problem is I have to redo this after every theme updated. Which
   is quite often. Can you advice on how to add this to the theme’s child? It’s 
   not specific to the theme, but rather a solution for any theme.
 * [https://wordpress.org/plugins/wp-ulike/](https://wordpress.org/plugins/wp-ulike/)

The topic ‘Add function in theme child’ is closed to new replies.

 * ![](https://ps.w.org/wp-ulike/assets/icon.svg?rev=2453069)
 * [WP ULike – Like & Dislike Buttons for Engagement and Feedback](https://wordpress.org/plugins/wp-ulike/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ulike/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ulike/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ulike/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ulike/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ulike/reviews/)

## Tags

 * [theme child](https://wordpress.org/support/topic-tag/theme-child/)
 * [zephyr](https://wordpress.org/support/topic-tag/zephyr/)

 * 0 replies
 * 1 participant
 * Last reply from: [augusto.luna](https://wordpress.org/support/users/augustoluna/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/add-function-in-theme-child/)
 * Status: not resolved