Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1404444

    I need to modify a plugin php file. I tried to create the file path in the child, but it doesn’t work.
    How Can I solve?

    Thanks

    #1404484

    I think you have a little misunderstanding about how a child theme works. A child theme uses all the parent theme elements as long as no files of its own are explicitly added. Plugins are no exception, they are added to WordPress and made available to the themes. The child is then allowed to be the one who benefits from the whole thing.

    no difference to editing if you only have your parent theme activated.
    just choose on top right your desired plugin you had to edit. “Select plugin to edit:”

    #1404485

    i know that, maybe i wasn’t clear because of my english.
    I mean, i already modify a php file of a plugin.
    i need to upload this file to my enfold child theme, so I can upgrade the plugin when necessary.
    i don t know where to upload the php file in the child theme. in which folder?
    hope to be more clear,

    thanks

    • This reply was modified 1 year, 7 months ago by marcomila.
    #1404487

    and this edited file was created outside of wordpress? Then look where the original is located – and upload it via ftp.

    #1404489

    maybe i’m not explaining myself…
    I edited the file, I know exactly where to upload it (via filezilla). but I would like to load it in the child.
    my question is: where should i upload it? in which folder in the child? should i add some codes to the function.php?

    #1404492

    there are no child-theme plugins – there are only plugins.
    f.e. – if i have contact form 7 plugin installed – it will be there on enfold parent theme – and it will be there on the child. No extra loading needed.
    Plugins are loaded by wordpress – not by there themes. You can easily check this – because changing the theme to 2020, for example, does not change the activations of the plugins – all those that were active before remain so.
    There may be plugins that are written specifically for Enfold (I can’t think of any right now) – but even there the above applies.
    What plugin do you like to work with? What changings do you have made?

    _______

    Maybe you just don’t see the change because you have caching tools running or Enfold’s file merging is active. In this case you should refresh the files: Enfold – Performance – “Delete Old CSS And JS Files?

    #1404494

    I believe you are responding to things that I have not asked, and that I know very well.
    my question is: in which folder of the child theme should I upload the modified file of a plugin for it to work? I would like not to edit the file directly in the plugin folder, to be able to update it when needed.
    for this reason, in fact, I would like to upload the modified file of the plugin in the child.

    #1404496

    And you do not understand how plugins work:
    The plugins folder is outside the themes folder – there is no parent plugin nor a child plugin folder – just a pure plugin folder:

    Maybe a Mod knows better to help you out of this.

    #1404511

    Hi marcomila,

    It depends on the plugin, for example in Woocommerce you can modify their template files and add it to the child theme but you must put it inside woocommerce folder (created inside the child theme). Woocommerce put that in their documentation: https://woocommerce.com/document/template-structure/
    However, most of the plugins don’t have that, and you can only use hooks and filters to modify how the plugin works.
    Can you tell us the name of the plugin that you have modified and maybe we can check their documentation.


    @Guenni007
    thanks for helping out. :)

    Best regards,
    Nikko

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