Home Forums Free Themes Selfgraphy CHANGE PHP SECTION “DETAIL” IN A CHILD THEME

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #119092
    night59
    Participant

    Good evening all,

    Could you tell me why the php file “details” is not taken into account on my child theme whereas if I modify it in the parent theme, it works perfectly …

    #119117
    wensolutions
    Keymaster

    Hello,

    Regarding your query related to the child theme, at first, make sure you have created the child theme correctly. Once verify by referring to the below-given documentation link :

    https://wptravel.io/how-to-create-a-child-theme/

    Further, maybe you have not added the proper code for the edit of the string in your child theme. Also, as much as we would love to help you with this, we are unable to do so, as it requires a detail inspection of the code you have added through the child theme.

    So we would suggest you to either hire a freelancer or a professional developer.

    Further, do not make any changes directly in your parent theme. You have to make all the changes through the child theme only.

    If you have further queries related to the child theme, let us know.

    Regards.

    #119145
    night59
    Participant

    Hello,

    Thank you for your reply.
    I just checked and the child theme code is respected.

    But what do you mean by the edit of the string in your child theme?

    #119204
    wensolutions
    Keymaster

    Hello,

    Actually, we asked that have you added proper code or once verify the code in your child theme?

    If you have further queries, let us know.

    Regards.

    #119244
    night59
    Participant

    Hello,

    Yes the code is verified and works perfectly.
    Except that if I modify the “detail” file for example, it does not take into account the correction.
    It does not take my corrected file into account while I have respected the tree structure on the server.
    I think therefore the file is called by the parent theme and not the child theme.

    Thank you in advance for your feedback

    #119284
    wensolutions
    Keymaster

    Hello,

    Since we are unaware of the situation that you are currently facing and also this seems to need detail inspection on the code. so we would suggest you to take help from the professional developer.

    Further if you have any queries/confusion regarding the plugin then kindly let us know.

    Thank you.

    Stay safe and healthy.

    #119294
    night59
    Participant

    Hello,

    I just want to know the order in which the files are taken into account.
    Because as said before, I modified the file in the details section and it is not taken into account.

    Thank you in advance for your return,
    and also stay safe.

    #119302
    wensolutions
    Keymaster

    Hello,

    Is your child theme active or not?

    Also, the code will only work upon adding the code in your child theme funtions.php and through the template file.

    So please make us clear what is the code that you have added and where? Please provide in detail so that we can help you further.

    Hoping to hear from you soon.

    Thank you.

    #119313
    night59
    Participant

    This is the code I changed.

    I attach a download link via wetransfer.
    The line of modified code is on line 107.
    I added an image tag with a link.

    https://we.tl/t-u9o7lqf0F8

    Thank you for your help

    #119528
    wensolutions
    Keymaster

    Hello,

    Regarding your query, since the file that you want to edit (inc/sections/details.php) is not the template file so it cannot be changed through the child theme.

    If you make the change directly then only the changes will be seen.

    Also, can you please mention the section that you want to change so that we can provide the information on whether the section can be modified through the child theme or not?

    Thank you.

    #119623
    night59
    Participant

    Hello,

    Here is the code to change:

    https://we.tl/t-FdaUZOfHB0

    Would that be okay with you ?
    Thank you in advance for your return.

    #119675
    wensolutions
    Keymaster

    Hello,

    While making the detail inspection on the code, we found that, although only a class needed to be added, we need to make a lot of changes code wise which is beyond the support we offer for our product.

    Also, adding code in the parent theme will make you lose the changes you made so we don’t recommend you make code customization in parent theme.

    So you can consider hiring a freelancer or our professional developer.

    https://themepalace.com/hire-a-customizer/

    Regards.

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