[Resolved] Child theme template changes not working

Home Forums Support [Resolved] Child theme template changes not working

Home Forums Support Child theme template changes not working

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1278879
    Matt

    Hi,

    I’m probably missing something very obvious but perhaps someone could advise me.

    I have a child theme installed and have already made successful changes to CSS. I’m now trying to make changes to post archive listings (specifically to remove the link from the date).

    If I edit post-meta.php directly in GeneratePress, I can see the change applying as I would expect. However, if I create a copy of post-meta.php in /mychildtheme/inc/structure/post-meta.php, this seems to have no effect. The change does not appear.

    What am I doing wrong?

    #1278900
    John

    If I’m not mistaken, Child’s are loading these files from Parent Themes (via funktions.php) as they don’t have an own file structure!

    cheers

    #1279042
    David
    Staff
    Customer Support

    Hi there,

    most changes to templates can be done using filters like this one here for removing links from the date:

    https://docs.generatepress.com/article/generate_post_date_output/#remove-link-from-date

    Simply add it to your Child theme functions.php

    Let me know if that works for you

    #1279418
    Matt

    That works. Seems like a nice tidy solution, thanks David.

    #1279471
    David
    Staff
    Customer Support

    Filters are great – and for most things there is a filter available 🙂
    Glad to be of help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.