Template Override folder question

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #6803

    Mitch Canton
    Free User
    Post count: 167

    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: 27815

    I will ask the developers to confirm.

    #6822

    Patrik
    Moderator
    Post count: 1971

    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: 167

    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)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket