• Resolved eluyawi

    (@eluyawi)


    Hi everyone!,

    I need to modify the files of the “Restrict Content Pro” plugin, then I have installed a theme child (mytheme-child), and to modify the files with the same structure of the plugin I have copy them to “mytheme-child”. is it ok?. Because, I have modify one file writing a header and it isn’t appear that change

    mytheme-child/ (Folder of my theme child)
    mytheme-child/restrict-content-pro/ (Files of the plugin restrict-content-pro). Here, could I modify the files of the plugin?

    I am following this steps:

    https://help.solidwp.com/hc/en-us/articles/360052350934-Editing-Template-Files

    • This topic was modified 1 year, 2 months ago by eluyawi.
    • This topic was modified 1 year, 2 months ago by eluyawi.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You cannot customise plugin files in this way, only the templates that the plugin provides. This is also stated in the instructions you linked:

    Copy the files from the Restrict Content Pro?templates?directory into the new folder created in your theme

    If you want to customise something other than these, then I would strongly advise against it. In this case, you would have to contact the plugin developer and hope that there is a hook for the customisation you want.

    Thread Starter eluyawi

    (@eluyawi)

    Hi threadi,
    I mean modifying the plugin template files

    mytheme-child/ (Folder of my theme child)
    mytheme-child/restrict-content-pro/templates Here, could I modify the templates files of the plugin? Would this structure be correct?

    According to the description on the page you linked, no. According to what is written there, the directory must be called rcp and not restrict-content-pro. It also does not need a subdirectory called template. Everything is in the instructions there.

    Please note that the instructions are intended for a commercial plugin. Questions about commercial products are not allowed here in the forum. If you have any further uncertainties regarding these rather precise instructions, please contact the developer.

    Thread Starter eluyawi

    (@eluyawi)

    Thanks Threadi

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Modify files of a plugin’ is closed to new replies.