• picinae

    (@picinae)


    I have started to create a child theme to twenty ten.

    So far, I have three files one style.css, customPage.php and loop-page.php in children theme.

    style.css works fine, but the customPage.php that calls the loop-page.php is not working. It chooses the Twenty Ten’s loop-page.php.

    The page have the customPage as a template.

    Are there any more parameter that must be set somewhere. Have I got this wrong? that the file that is located in child theme is overriding the one situated twenty ten folder.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Chip Bennett

    (@chipbennett)

    What does your get_template_part() function call in “customPage.php” look like?

    Thread Starter picinae

    (@picinae)

    <?php
    /*
    Template Name: Page without headline
     */
    
    get_header(); ?>
    
    		<div id="container">
    			<div id="content" role="main">
    
    			<?php
    			get_template_part( 'loop', 'page' );
    
    			?>
    
    			</div><!-- #content -->
    		</div><!-- #container -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    Chip Bennett

    (@chipbennett)

    That all looks fine. This is the critical part:

    <?php get_template_part( 'loop', 'page' ); ?>

    So, the next question: can you double-check, and verify that the Page in question truly does have the “Page without headline” template assigned to it?

    Thread Starter picinae

    (@picinae)

    Yes, It’s selected, I have checked several times. buhu

    Chip Bennett

    (@chipbennett)

    Do you have a live link to the Page in question?

    Thread Starter picinae

    (@picinae)

    Chip Bennett

    (@chipbennett)

    And which Page on that site is using customPage.php as its template?

    Thread Starter picinae

    (@picinae)

    I just installed a fresh copy of twenty ten

    Chip Bennett

    (@chipbennett)

    Oh, I see that, basically, all of them are using customPage template.

    I’m also not seeing the problem. All of the Pages are rendering without a Title for me.

    Thread Starter picinae

    (@picinae)

    all of them ….

    Chip Bennett

    (@chipbennett)

    all of them ….

    So, what are you expecting to see, that you’re not?

    Can you post a pastebin of your Child Theme loop-page.php file?

    Thread Starter picinae

    (@picinae)

    oh not for me That is strange what browser are you using?

    Chip Bennett

    (@chipbennett)

    I’m using Chrome.

    Do you have caching enabled, either through a Plugin, or your host, or a third-party service?

    Thread Starter picinae

    (@picinae)

    Sh*t now I see what I did wrong. I’m sorry I wasted your time … I was totally way off …. It was the site name to be removed, not the title … What an idiot I am thanks so much …

    Chip Bennett

    (@chipbennett)

    No worries; glad you got it sorted!

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘children theme overriding files’ is closed to new replies.