Child theme

i try to put the content-porfolio.php inside the child theme /includes/, under appearance editor i can see the content-porfolio.php, but when i inspect or view page source, it didnt show up what i had added, please help, thanks.

Comments

  • Hi,
    if you want to add a file into the child theme you have to edit the functions.php file in the child theme folder and then at the end add the file you want to. THere is a commented out section there.
    /* ---------------------------------------------------------------------------
    * Override theme functions
    *
    * if you want to override theme functions use the example below
    * --------------------------------------------------------------------------- */
    // require_once( get_stylesheet_directory() .'/includes/content-portfolio.php' );
  • Hi,
    it work perfectly, thanks for the support.
Sign In or Register to comment.