• dbp

    (@optimus203)


    I’m trying to link to a new /includes/theme-sidebar.php file that I edited in my child theme. But when I try to to add this line to the functions.php file in the child theme, it does not link:

    require_once 'www.url.com/wp/wp-content/themes/childtheme/includes/theme-sidebar.php';

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What’s the error?

    Thread Starter dbp

    (@optimus203)

    When I change that 1 line in the functions.php file, the entire site goes blank.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Looks like the syntax is wrong for require_once to begin with, but you should be able to access your site’s error logs to see more explanatory error messages. Can you asks your hosts to help you with accessing that if you don’t know how?

    Thread Starter dbp

    (@optimus203)

    Thanks Andrew. I’ll look into that. Thanks for the time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redefine /includes/theme-sidebar.php in a child theme’ is closed to new replies.