• Resolved mitua

    (@mitua)


    Hi,

    Am using a child theme created from the parent by usual procedure.

    I have created the page templates for the admin pages so that the functionality can be used in frontend.And there is a functions.php file along with the pages in the plugin.so it has to be kept in the child theme.

    Now, I also want to create the pages automatically and the respective templates being assigned to them and also for any other template which I create I want automatic creation of pages.So for this purpose I would be required to add a function in the functions.php of the theme.Now since I cannot make any changes in the parent theme I would need to copy the functions.php into my child theme and then add the required function.Now there would be two problems:

    1) There would be two fuctions.php.one of the plugin and one of the theme.How to keep these two files with the same names in the child theme?

    2) If I am copying the functions.php from the parent theme into the child theme this will give error for two identical functions previously there.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘pmpro-how to keep two functions.php in the child theme?’ is closed to new replies.