Template Override folder question

This topic contains 3 replies, has 3 voices, and was last updated by  Mitch Canton 2 months ago.

Tagged: ,

  • Author
    Posts
  • #6803

    Mitch Canton
    Free User
    Post count: 153

    In your docs it says:

    “Copy the template you want to change, say for example: profile.php, copy it from userswp/templates/profile.php to a folder in your theme called /userswp/profile.php”

    so if I wanted to change /wp-content/plugins/userswp/templates/bootstrap/login.php

    would it be:
    /wp-content/themes/generatepress_child/userswp/login.php
    or
    would it be
    /wp-content/themes/generatepress_child/userswp/templates/bootstrap/login.php

    I thought it had to be exactly the same folder structure, but the docs indicate otherwise. Not sure how it works for UWP.

    Thanks.

    #6809

    Alex Rollin
    Moderator
    Post count: 26655

    I will ask the developers to confirm.

    #6822

    Patrik
    Moderator
    Post count: 1899

    Hi,

    You should override the files from templates to the theme via creating a userswp folder and copying the file you want to override and if the file is in another folder say bootstrap then you have to create that folder and then paste that file in that folder. So in your case, the correct path to override the file is /wp-content/themes/generatepress_child/userswp/bootstrap/login.php

    Let me know if it helps you or not.

    Regards,
    Patrik

    #6823

    Mitch Canton
    Free User
    Post count: 153

    Hey Patrik,

    OK, so my error was in including the ‘templates’ folder in the structure. I had replicated it *exactly* from the plugin folder.

    I created without the /templates/ part and it works as I expected.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Template Override folder question’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.