• Hi Folks,
    I’ve just recently found child themes and I’m trying to get a template file to work from the child.

    I’ve got everything else I need; stylesheet.css, functions.php
    but when I put a template files into the child theme directory it makes no difference.

    Do I need to tell the child theme that they are there?

    Thanks in advance for your help.

    TimstreC ;o)

Viewing 12 replies - 1 through 12 (of 12 total)
  • What template files, exactly, are not working, and where do you expect to see them work?

    Thread Starter timsterc

    (@timsterc)

    I have the comments.php, index.php, page.php and single.php in my child theme directory as I want to change the text that shows about how many comments are waiting. There are text elements in these to template files but changing them all seems to do nothing to the end result.
    Should I be changing this somewhere else?

    What, exactly, isn’t appearing, or isn’t rendering as you are expecting it to render?

    Thread Starter timsterc

    (@timsterc)

    <p class="comments">
                  <?php comments_popup_link(__('No prayers yet'), __('One prayer so far'), __('% prayers so far')); ?>

    It’s still saying ‘comments’ in the blog, not ‘prayers’

    In which template file: index.php, page.php, or single.php?

    I assume you mean index.php?

    Thread Starter timsterc

    (@timsterc)

    it’s in each of them

    But what are you viewing on your rendered site?

    Are you looking at the blog posts index (index.php), a single blog post (single.php), or a static Page (page.php)?

    Thread Starter timsterc

    (@timsterc)

    index.php. And even though I’ve changed it in all of them and restarted the server to make sure it’s not cached, it’s not changing.

    Can you post a pastebin of your modified Child Theme index.php template file?

    Thread Starter timsterc

    (@timsterc)

    Directly from your code pasted above:

    <p class="comments">
         <?php comments_popup_link(__('No responses yet'), __('One response so far'), __('% responses so far')); ?>
    </p>

    Which is different from what you posted previously:

    <p class="comments">
        <?php comments_popup_link(__('No prayers yet'), __('One prayer so far'), __('% prayers so far')); ?>

    Thread Starter timsterc

    (@timsterc)

    <eggOnFace> Whoops looks like I have the wrong files in my eclipse editor. </eggOnFace>

    Thanks for pointing out the obvious. ;o)

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Template files in my child theme are not working’ is closed to new replies.