• Resolved boghi

    (@boghi)


    Hi,
    I’m trying to use a child theme, but when I try to add and edit some files that there aren’t on the root (for ex: post-meta.php inside inc/views/partials) into the main theme, the changes don’t work. It seems like the child theme keeps using the main’s theme file.
    Do you have suggestions to make it use the one inside the child theme folder?

Viewing 13 replies - 1 through 13 (of 13 total)
  • AC

    (@purplecodes)

    Themeisle Support

    Hi @boghi,

    Kindly create the Neve child theme using this documentation.

    Let us know if this works for you.

    Thread Starter boghi

    (@boghi)

    I’ve already downloaded the child theme and like the documentation said, I’ve copied the views folder(which is inside the inc folder). I’ve made some changes on the post-meta.php file and they are not working.

    Hello @boghi!

    Could you please tell us what type of changes are you trying to make in the post-meta.php file of the child theme?

    Thank you!

    Thread Starter boghi

    (@boghi)

    Hi @luciamarinescu,
    I’m trying to change the author’s link and to add a link to the date

    Hello @boghi!

    It’s possible to change the author link by adding the code that can be found here at the end of the functions.php file from the child theme. However, adding a link to the date is not possible.

    Have a nice day!

    Thread Starter boghi

    (@boghi)

    Hi @luciamarinescu,
    we have to find a way to do that because it’s very important. Why the post-meta.php file inside the child theme is not working?

    Hi @boghi!

    Please make sure the hierarchy of the folders and files (including the post-meta.php one) is the same in the child theme as in the parent theme. Also, please tell us what code you are trying to add or what part from that file you are trying to change. However, if it requires too much customization, unfortunately we won’t be able to help you, as we do not provide a higher level of customization. Also, as I previously mentioned, it’s not possible to add a link to the date.

    Have a good day!

    Thread Starter boghi

    (@boghi)

    Hi @luciamarinescu,
    I’ve checked the hierarchy of the folders and it’s the same(theme folder/inc/views/partials/post_meta.php), I’ve copied all the inc folder into the child theme so there can’t be a hierarchy problem.
    I want to modify the line 286 which for me is this one:
    $time = '<time class="entry-date published" datetime="' . esc_attr( date_i18n( 'c', $created ) ) . '" content="' . esc_attr( date_i18n( 'Y-m-d', $created ) ) . '">';

    With this one:

    $post_date = rawurlencode( get_the_date('d/m/Y') );
    $time = '<a href="'.site_url().'/?from='.$post_date.'&to='.$post_date.'"><time class="entry-date published" datetime="' . esc_attr( date_i18n( 'c', $created ) ) . '" content="' . esc_attr( date_i18n( 'Y-m-d', $created ) ) . '">';

    I’ve tried this change into the main theme and it’s working.

    P.S I didn’t forget to close the link tag, I did it after the </time> tag.

    • This reply was modified 2 years, 10 months ago by boghi.
    • This reply was modified 2 years, 10 months ago by boghi.
    • This reply was modified 2 years, 10 months ago by boghi.

    Hi @boghi!

    Sorry for the delayed reply!

    Unfortunately implementing this would require too much customization that we do not provide.

    Thank you for understanding and have a nice day!

    Thread Starter boghi

    (@boghi)

    @luciamarinescu
    thank you for nothing, I’ve asked you how to solve the theme problem, not to do custom code for me.
    Now your help is no more needed.

    Hi @boghi,

    Thank you for using Neve.

    The theme files that can be overwritten in a child theme are only the ones placed directly in the theme folder and the ones within the “views” folder that has the following path:

    wp-content/themes/neve/views

    The file mentioned, from:

    neve/inc/views/partials/post_meta.php

    can not be overwritten in a child theme of Neve as it’s not directly in the views folder but as a subfolder of the inc directory.

    We are trying to make such aspects as clear as possible in the documentation – https://docs.themeisle.com/article/985-how-to-create-a-child-theme-for-neve.

    Best regards,
    Stefan

    Thread Starter boghi

    (@boghi)

    @stefancotitosu
    this sentence ” If there is something that you would like to update using a child theme, let us know and we will take it into consideration.” is clear to you?
    I’ve asked, you didn’t resolve and you are pointing me at initial point.
    This topic is not resolved.

    Theme Author Themeisle

    (@themeisle)

    @boghi,

    Thank you for your suggestions, currently, we can only confirm the mentioned file is not a template file so it cannot be overwritten with a child theme.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Child theme issue’ is closed to new replies.