Title: child theme function??
Last modified: August 31, 2016

---

# child theme function??

 *  [vl4d](https://wordpress.org/support/users/vl4d/)
 * (@vl4d)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/child-theme-function-1/)
 * hello again..
 * so how to put the same function code in the child function?? i have this code
   in my normal theme..
 *     ```
       /* Display Facebook and Google Plus button */
       function gp_social_share($post_ID){
       if(ot_get_option('social_like',1)){
       ?>
       <div id="social-share">
           &nbsp;
           <iframe src="//www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post_ID)) ?>&width=450&height=21&colorscheme=light&layout=button_count&action=like&show_faces=false&send=false&appId=498927376861973" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:85px; height:21px;" allowTransparency="true"></iframe>
           &nbsp;
           <div class="g-plusone" data-size="medium"></div>
           <script type="text/javascript">
             window.___gcfg = {lang: 'en-GB'};
             (function() {
               var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
               po.src = 'https://apis.google.com/js/plusone.js';
               var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
             })();
           </script>
       </div>
       <?php }
       }
       ```
   
 * and i want to put the same code in child function(+with an extra link) but i 
   get error.

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

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
