archive.php not overwriting using Child Theme (12 posts)

  1. Alexzeto
    Posted 2 years ago #

    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.


    Thank you !

  2. Marko Heijnen
    Posted 2 years ago #

    Are you sure that you aren't trying to overwrite a archive-(posttype).php file with archive.php?

  3. Alexzeto
    Posted 2 years ago #

    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.

  4. Marko Heijnen
    Posted 2 years ago #

    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

  5. Alexzeto
    Posted 2 years ago #

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


    Template Name: Blog Template


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

  6. Marko Heijnen
    Posted 2 years ago #

    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.

  7. Alexzeto
    Posted 2 years ago #

    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:


    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 !

  8. Marko Heijnen
    Posted 2 years ago #

    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.

  9. Alexzeto
    Posted 2 years ago #

    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 !

  10. Andrew
    Forum moderator
    Posted 2 years ago #

    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.

  11. Marko Heijnen
    Posted 2 years ago #

    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.

  12. Alexzeto
    Posted 2 years ago #

    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 !

Topic Closed

This topic has been closed to new replies.

About this Topic