• Hi there,

    Hopefully this is an easy one, but either way I haven’t been able to work it out as I am pretty new to WordPress.

    I have installed this storefront child theme https://github.com/stuartduff/storefront-child-theme, which works just fine. I can copy in files from the parent theme such as single.php and content-single.php, and any edits I make to these files work effectively.

    The problem is that I would now like to edit ‘inc/storefront-template-functions.php’, however when I copy this file into my child theme, any edits I make to this file don’t take affect. I have tried copying storefront-template-functions.php into both:

    storefront-child/

    and

    storefront-child/inc/

    Both nothing I try seems to work.

    Please help me fix this.

    PS. I read that I need to use get_stylesheet_directory();, however, I’m not sure where I add/edit this…

    Many thanks,

    Greg

Viewing 2 replies - 1 through 2 (of 2 total)
  • Greg,

    I’ve just been through this over the last few days – just make a backup of the original file and then edit the thing in the parent template, making sure to make another backup/copy of your newly edited file incase you update the storefront template and overwrite it, destroying all your customisations.

    My experience was this: https://ww.wp.xz.cn/support/topic/urgent-please-trying-to-move-site-logo-above-header-move-nav-below-header/

    What I wanted to do was get the logo and nav outside or OFF of the header image.
    If you can’t edit the code just yet, then you might be limited to just using off the shelf plugins, but that didn’t help me and are a step backward in my opinion.

    You could copy the function from storefront-template-functions.php into the functions.php in your child theme and do the edit there.

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

The topic ‘Can’t edit storefront-template-functions.php in child theme’ is closed to new replies.