Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #442813

    Hi!

    2 questions:

    1) Lets say i need ot modify the loop-xxx.php file. These files exist in includes/ directory in the parent theme. If i need to override this file in my child theme, do i have to create an includes directory there and put it in or not?

    2) Lets say i need for ONE page to be able to modify its appearance and i don’t want to do it with page template. I tried to copy paste and rename page.php to page-ID.php or page-SLUG.php biut it doesnt work? Shouldn;t be working?

    #443807

    Hi earthdog!

    1. You’ll need to place it inside a directory named “includes”.

    2. I haven’t tested it out but I don’t see why it would not be working, https://codex.wordpress.org/Page_Templates. What are the edits your doing?

    Best regards,
    Elliott

    #443816

    Hey earthdog!

    1.) Yes, you will need an includes folder on the child theme direction.

    2.) You could try to use get_template inside your new page-ID.php: http://codex.wordpress.org/Function_Reference/get_template_part

    I hope it will work for you.

    Best regards,
    Andy

    #444104

    Thank you.
    I want’t using templates, i was just creating a page-#id.php and thought it could work like this. When i used a template it is working ok.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Some basics on child theme modifications (custom single page and replacing loop)’ is closed to new replies.