• prip

    (@prip)


    You don’t have child-theme support for /includes/template-tags.php

    functions.php
    require get_template_directory() . ‘/includes/template-tags.php’;

    Please use locate_template() or get_stylesheet_directory.

Viewing 3 replies - 1 through 3 (of 3 total)
  • stephencottontail

    (@stephencottontail)

    The functions within the file are all pluggable, so you could define functions with the exact same name in your child theme’s functions.php and those functions would be used instead.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi there prip!

    I’m not entirely sure if you notice that all those functions inside the file are pluggable by a child theme or even a plugin. For example:

    if ( ! function_exists( 'shaped_blog_archive_title' ) ) :

    The above can be overridden with your own logic in a child theme by declaring it in your functions.php file.

    Hope that helps you understand a little as to how the theme chose to load those files and write pluggable functions instead.

    Thread Starter prip

    (@prip)

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Better child-theme support’ is closed to new replies.