• Trying to customize modal template view-photo.php via child theme.

    Copied plugins/ultimate-member/templates/modal/view-photo.php to child-theme/ultimate-member/templates/modal/view-photo.php as advised in 2.8.6 change log and modified the code there.

    Ultimate Member plugin Settings > Advanced > Override templates finds and lists our template:

    Last update: 5. September 2024 12:01.

    Core path - wp-content/plugins/ultimate-member/templates/modal/view-photo.php
    Theme path - wp-content/themes/child-theme/ultimate-member/templates/modal/view-photo.php

    Core version Theme version Status
    2.8.6 2.8.6 Theme version up to date

    But in frontend members page that modified template from child theme is not used but the original from plugin core path.

    Looks like a bug or are we doing something wrong? Please advise.

    Note: Other overrides like child-theme/ultimate-member/templates/profile.php work fine.

    Besides that in the view-photo.php template a wrong override path is provided, the templates folder seems to be missing there:

    <?php
    /**
    * Template for the modal photo
    *
    * This template can be overridden by copying it to yourtheme/ultimate-member/modal/view-photo.php
    *
    * @version 2.8.6
    */

    Ultimate Member 2.8.6, WordPress 6.4.5

Viewing 4 replies - 1 through 4 (of 4 total)
  • @ov3rfly

    Besides that in the view-photo.php template a wrong override path is provided, the templates folder seems to be missing there:

    No this path is OK.
    Try to copy your custom view-photo.php to this folder:

    ...child/ultimate-member/modal/view-photo.php

    Thread Starter Ov3rfly

    (@ov3rfly)

    Thanks for quick feedback.

    If we copy custom view-photo.php to child-theme/ultimate-member/modal/view-photo.php it actually is used in frontend members page.

    But then the custom template is not listed at all in Ultimate Member plugin Settings > Advanced > Override templates – also not after refreshing there.

    Seems the change log and the Override templates list reference/use a different path compared to the real custom override code for frontend.

    Plugin Support andrewshu

    (@andrewshu)

    Hello @ov3rfly

    This will be fixed in the next release this weeek.

    Regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.