Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Where must I put replaced functions?

Discussion in 'Misc WordPress Requests' started by sherlock16, Feb 6, 2018.

  1. sherlock16


    Where must I put replaced functions?, by sherlock16

    I created a child theme for Twenty Sixteen containing functions.php and styles.php. I believed that to replace a function I had to create a file named as the parent file and to put the redefined function there, but it is not working.
    I’m trying to redefine the twentysixteen_entry_date() function: if I put it into functions.php of the child theme it works, if I put it into the inc/template-tags.php file like the parent theme does, the redefinied functions is ignored.
    So, I guess the correct way is to put redefined functions into functions.php?

    Where must I put replaced functions?

Share This Page

Monarch Social Sharing Plugin