• Resolved Turk

    (@turk)


    Can we not make this use custom page templates? It seems to ignore them when logged in. It displays with the proper page template for anyone not logged in.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Alex Kirk

    (@akirk)

    Hi! I’d like to help you but could you please be more specific? The Friends Plugin uses a Custom Post Type (CPT) but I am not sure if you mean this.

    Could you share (relative) URLs and describe which behavior you see there? Thanks!

    Thread Starter Turk

    (@turk)

    Sure it defaults to https://www.hotelblues.com/friends/

    Which is fine for anyone not logged in. But this is what I see:
    https://i.imgur.com/GgkcmSd.png

    I want to be able to make this use my terrible cobbled together WordPress theme.

    Plugin Author Alex Kirk

    (@akirk)

    Ok understood! You can easily do this and override each of the templates in https://github.com/akirk/friends/tree/main/templates by just adding it to your theme under a friends/ directory.

    So, for example to display “hello” instead of the logged in /friends/ page, you’d create a file containing “hello” in the friends/frontend/index.php file.

    So for you specifically you can create a file wp-content/themes/hotelblues/friends/frontend/index.php and it will override that template.

    Since this is not very useful, you’d be best off by copying the respective file from https://github.com/akirk/friends/tree/main/templates/ and then start your customization from there.

    • This reply was modified 3 years, 5 months ago by Alex Kirk.
    Thread Starter Turk

    (@turk)

    Thank you. I will look at that and see what I can do.

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

The topic ‘Page Templates’ is closed to new replies.