how do i setup Front End PM Pro in a chile theme?


Home Forums Front End PM PRO how do i setup Front End PM Pro in a chile theme?

This topic is: Resolved

Tagged: 

Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
    Posts
  • #12680
    SteveMTNO
    Participant

    I currently have a working child theme on my site. CSS changes work perfectly.

    However, I’m confused as how to setup FEP Pro in the child theme.

    I copied the full directory structure: /wp-content/plugins/front-end-pm-pro and all of the subfolders, etc. But plugin edits only show up on the site if they’re made in the parent theme’s /plugins folder structure – not the one in the child theme.

    What am I doing wrong? Let me know if I need to provide any additional info.

    Thanks,

    SteveMTNO

    #12683
    Shamim Hasan
    Keymaster

    Are you trying to customize this plugin’s template in your child theme? Here is instruction https://www.shamimsplugins.com/docs/front-end-pm-pro/customization-front-end-pm-pro/change-templates/

    #12686
    SteveMTNO
    Participant

    That’s what I tried to do, but it didn’t work.

    I’m using a parent/child theme (the parent is /spacious, the child is /spacious-child

    The parent theme is setup as follows:
    /wp-test/wp-content/plugins/front-end-pm-pro

    The child theme is setup as follows:
    /wp-test/wp-content/themes/spacious-child/wp-content/plugins/front-end-pm/templates

    I’m guessing the problem with the child theme is a pathing issue.

    In my parent theme, i’m using a site plugins folder & this works:
    /wp-test/wp-content/plugins/bc-plugins (bc is the name of the site)

    I tried copying the contents of viewmessage.php to fep-plugin.php, and then activating it as a separate plugin, but got a fatal error.

    Seems like this should be an easy thing to do..

    Thanks for your help,

    SteveMTNO

    #12710
    Shamim Hasan
    Keymaster

    Please follow step by step
    1. Remove all changes you have made for this plugin.
    2. Inside your child theme create a folder called “front-end-pm”. So full path will be /wp-test/wp-content/themes/spacious-child/front-end-pm/
    3. in this folder copy “viewmessage.php” and change this file as you need ( do not change file name)

    #12731
    SteveMTNO
    Participant

    Thanks for the quick reply, shamim.

    So, just a couple more quick questions:

    – Should the complete plugin still be installed in /wp-test/wp-content/plugins/ (so that it can be used with any installed theme)?

    – Should /wp-test/wp-content/themes/spacious-child/front-end-pm/ only contain “viewmessage.php” (and any other files to be changed in the child them only) without all of the other subfolders, etc?

    #12736
    Shamim Hasan
    Keymaster

    1. Plugin must be installed in plugin directory (normally /wp-content/plugins/)
    2. wp-content/themes/spacious-child/front-end-pm/ can contain any files from front-end-pm-pro/templates directory

    #12739
    SteveMTNO
    Participant

    Thanks again for the quick response, shamim!

    Unfortunately, I’m at work right now and can’t test this out. 🙁

    So, if I understand this correctly:

    – installing the plugin in /wp-content/plugins/ will allow me to use the plugin with any them that I have installed

    – and copying/modifying files in the /wp-content/themes/spacious-child/front-end-pm/ folder will let me make changes exclusive to the “spacious-child” theme, without affecting the source files in the /wp-content/plugins/ folder.

    Is this correct?

    And one more quick question… Can I put other updated files into the /wp-content/themes/spacious-child/front-end-pm/ too, or is that limited to template files?

    Thanks again for all your help!

    SteveMTNO

    #12762
    Shamim Hasan
    Keymaster

    Both of your understand is correct.
    You can only change templates file in /wp-content/themes/spacious-child/front-end-pm/

    #12798
    SteveMTNO
    Participant

    Perfect – works great! Thank you so much for your help!

    What other elements of this plugin can I modify in the child theme like this? Or is it just the files in the /templates folder? CSS files, maybe?

    #12801
    SteveMTNO
    Participant

    What about \includes\class-fep-form.php? Is there a way to add that to the child theme too?

    #12808
    Shamim Hasan
    Keymaster

    In child theme only /templates folder can be modified.
    To modify CSS, just add modified CSS in your child theme’s style.css file. OR add your modified CSS in Front End PM PRO > Settings > General > Custom CSS

    #12811
    SteveMTNO
    Participant

    Is there a recommended way for modifying the other plugin files, so that things won’t get overwritten during an update?

    #12818
    Shamim Hasan
    Keymaster

    You can use hook ( action and filter ) to change any other function.

    #12823
    SteveMTNO
    Participant

    I don’t know what that means. Can you give me an example?

    Thanks,

    SteveMTNO

    #12826
    Shamim Hasan
    Keymaster

    All plugins are based on this hooks.
    Let me know what you are trying to achieve, i will try to give you code for that.

Viewing 15 posts - 1 through 15 (of 27 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.