Support » Theme: Mantra » Please Update – Child-Theme Friendly Functions.php

  • In the Mantra Theme’s functions.php file, admin files are included like so:
    require_once(get_template_directory() . "/admin/main.php");

    This is not very child-theme friendly, as it force-loads the parent theme’s main.php file.

    A suggested update would be to load the file using locate_template as follows:
    locate_template( '/admin/main.php', true );

    Thank you for your consideration.

  • The topic ‘Please Update – Child-Theme Friendly Functions.php’ is closed to new replies.