• Resolved mallvina

    (@mallvina)


    I am using TwentyTwelve as a parent team and created child team, the CSS changes work perfectly on the website, but no changes work within php files. For example, I want to remove the “Leave a Reply” section from all the pages, I copied the page.php to my child folder, removed

    <?php comments_template(); ?>

    saved, no changes. I even tried to clean comments.php file and reload empty, no changes. I also tried to remove “Powered by WordPress” in footer.php by removing:

    <a>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?></a>

    No changes!
    On the other hand, I created a new file functions.php in the child folder and created a new widget and it worked. So it seems I have some problems with overriding the child php files.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Others here will have to give you specific details I do not know, but putting a file inside a Child Theme does not mean the one in the Parent will be ignored. Think of “patching” or “over-riding” rather than “replacing”, then do some searches for things like display: none and things will begin making sense.

    Actually, .php files do (or should) override the parent file – so something may not be working right. Do you have caching on your site? Can you post a link to it so we can see if the child theme is set up correctly?

    Thread Starter mallvina

    (@mallvina)

    It was a bit strange, but some miracle happened, once I switched off maintenance mode and turned on catching, the updates from child theme appeared and it seems to be working. Then I switched mack to maintenance mode and tried to make some changes in the footer.php in child theme and it was showing. ??

    Thanks anyway for the replies !

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Twenty Twelve child theme dont override’ is closed to new replies.