overload this in a child theme

  • gak

    #3923

    The following comment is found in the page.php file. Could you help me understand when it is saying:

    /* Run the loop to output the pages.

    * If you want to overload this in a child theme then include a file

    * called loop-page.php and that will be used instead.

    */

    Is is just asking me to put a copy of loop-page.php in the child theme folder?

    What do they mean by “overload”?

    THANKS!

    Mod

    Kenneth John Odle

    #26596

    I believe that is if you want the loop to run differently, to include different things in your posts. This has been made largely (but not entirely) superfluous by the use of Graphene action hook widget areas.

    See this:

    http://codex.wordpress.org/The_Loop

    and this:

    http://codex.wordpress.org/The_Loop_in_Action

    I may be entirely mistaken, however. This is one of those things I always wanted to experiment with, but haven’t had the time.

    gak

    #26597

    Thanks Kenneth,

    I was able to build header and footer files with the all appropriate hooks (those in the loop-page.php file). Script developed content is between the header and footer include files. Working good.

    THANKS AGAIN!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.