• Resolved snpbizjak

    (@snpbizjak)


    I can use whatever php file is in the theme directory and put it in the child theme directory, but those which are in the sections directory won’t work – they get pulled out of the zerif-lite (not child) theme. What must be done?

Viewing 5 replies - 1 through 5 (of 5 total)
  • MariusG

    (@marius_codeinwp)

    Hello,

    Try replacing get_template_directory() with get_stylesheet_directory() everywhere in front-page.php

    Let me know if this worked for you.

    Kind regards,
    Marius

    Thread Starter snpbizjak

    (@snpbizjak)

    Hmm, it loks that I got some part of the syntax wrong. I have copied all the php files from the section folder to the child folder and replaced all get_template_directory() . “/sections/our_focus.php”

    with either

    get_stylesheet_directory() . “/sections/our_focus.php”

    or

    get_stylesheet_directory() . “our_focus.php”

    But ways I got error messeges.

    MariusG

    (@marius_codeinwp)

    Did you manage to do it or are you still having issues?

    Could you attach a screenshot of the errors?

    Kind regards,
    Marius

    Thread Starter snpbizjak

    (@snpbizjak)

    This is the screenshot of the errors.

    https://www.dropbox.com/s/e4ppynndplzl8fp/problems.jpg?dl=0

    MariusG

    (@marius_codeinwp)

    Unfortunately I can’t really understand the text, the background doesn’t help.

    I am browsing your website right now, did you fix the errors or are you not using a Child Theme anymore?

    If you wish, you can send me login details via email at [email protected] and I can take a look on the Child Theme.

    Regards,
    Marius

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to change sections (php files) in child theme?’ is closed to new replies.