WordPress.org

Ready to get started?Download WordPress

Forums

Problem on a Child Theme: Non standard templates (1 post)

  1. backd00r
    Member
    Posted 3 years ago #

    Hi!

    I've created a child theme that's working corretly with the standard WP templates, but not with the other ones.

    For example:
    The main theme has this file: /includes/no-results.php

    And these contents:

    <!--If no results are found-->
    <h1><?php _e('No Results Found','PureType') ?></h1>
    <p><?php _e('The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.','PureType') ?></p>
    <!--End if no results are found-->

    I've copied the file to my child theme and in the same path, but doing some modifications:

    <!--If no results are found-->
    <div class="post-wrapper">
    <h1><?php _e('No Results Found','PureType') ?></h1>
    <p><?php _e('The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.','PureType') ?></p>
    </div>
    <h1>hola</h1>
    <!--End if no results are found-->

    The problem is that these modifications are not reflected when I activate the child theme.
    Can you tell me what I'm doing wrong?

    Regards,
    Javier

Topic Closed

This topic has been closed to new replies.

About this Topic