Support » Fixing WordPress » archive.php not overwriting using Child Theme

  • Hello everybody,

    I’m having a problem,I bought a theme,and I’m editing it using Child Theme,everything is going pretty well.

    My problem is,when I create a archive.php inside my Child Theme,nothing happens on my website,I looked everywhere and I couldn’t find the answers.

    This is my website.

    http://www.ejogosdefutebol.com

    Thank you !

Viewing 11 replies - 1 through 11 (of 11 total)
  • Are you sure that you aren’t trying to overwrite a archive-(posttype).php file with archive.php?

    i do have another archive.php inside my theme,called archive-contest.php,is that the (taxonomy).php that you are talking about ?

    Thank you for your time.

    Somehow, I ment post type. There is a hierarchy on how the files are getting loaded. You can see it at: http://codex.wordpress.org/images/1/18/Template_Hierarchy.png

    If you only looking at the archive of contest then you will see that you can’t change the content in your child theme with archive.php

    Marko when I open archive_content.php,the first thing that I can see is right on top, something like that

    <?php

    Template Name: Blog Template

    ?>

    So should I create another blog templeate ?
    Sorry about that,but I still litle bit confuse…

    Just read the link I send you. In this case I think you meant “archive-content.php”.

    Also even a single.php can be a page template. That the comment is in a archive page is allowed but I wouldn’t never do it myself.

    I’m following one course about child theme from lyndas.com,they show the same image that you sent me,i looked that hundred times kkkk.

    Yeah Marko,it should be archive_content,but it is not,it is archive_contest.php,I’m looking this page right now:

    http://codex.wordpress.org/Taxonomies

    I’m pretty sure it is easy,I just want overwrite the archive,when I change the archive.php inside my theme everything changes correctly,but when I add archive.php inside my chield theme nothing happens.

    I could edit my archive.php inside the theme,but this archive.php won’t recognize the style.css inside my chield theme !

    You got my lost. I somehow got the feeling that you don’t activated your child theme. WordPress just loads a file and the stylesheet should always be loaded.

    It is activated Marko,I changed 80% of my theme already,like I said before,everything is going pretty well.

    When you told me about archive_taxonomy what that really means ?

    🙂

    Thanks for the patient !

    Moderator Andrew Nevins

    (@anevins)

    Have you contacted your theme’s vendors?
    WordPress.org forums are for support with the core application, themes and plugins distributed on WordPress.org.
    It’s unfair to receive support from the open-source community for commercial themes.

    Ah okay. Maybe you should just have it as a normal theme instead of loading a parent theme.

    I meant archive-(posttype).php, for taxonomy it’s taxonomy-(taxonomy). I’m don’t build themes often so it was my mistake. So (posttype) and (taxonomy) are variables so you can have a special archive page for a certain post type.

    Thanks Marko,like Andrew said,I’m going to contact the owner of the theme,if he can’t explain,who can ? right ? kkk

    Thanks for your time Marko,I appreciate !

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘archive.php not overwriting using Child Theme’ is closed to new replies.