WordPress.org

Ready to get started?Download WordPress

Forums

Connections Business Directory
[resolved] Where to put custom templates (8 posts)

  1. bws-online
    Member
    Posted 1 year ago #

    I'd like to set up some custom templates, but I don't want them to get blown away if the plugin is updated or uninstalled/reinstalled. Where can I put these templates? (Do they have to go in the connections/templates folder, or can they go in my theme folder somehow?)

    Thanks!

    http://wordpress.org/extend/plugins/connections/

  2. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @bws-online

    The custom template folder and files can be put in the follow folder so it will be safe during a plugin upgrade:

    ../wp-content/connections_template

    Note, this is not in the plugins folders where Connections is installed with the default templates.

    Hope that helps.

  3. bws-online
    Member
    Posted 1 year ago #

    I tried this, but the templates weren't found. Within that connections_template folder, do I just have the individual folders for my custom templates, or do I need a different structure?

    Thanks again.

  4. bws-online
    Member
    Posted 1 year ago #

    Make that "connections_templates" (I was missing the "s" at the end -- it's still not working, though.)

  5. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    Right, it should be connections_templates.

    The folder structure would be a folder named as the template name but in all lowercase and using underscores for spaces. Within this folder would be all the template files. The minimum that you must include are template.php and meta.php.

    Use one of the default templates as a guide.

  6. bws-online
    Member
    Posted 1 year ago #

    Thanks Steven. Yes, that's everything I did. When I had it in the plugin's templates folder it worked fine, but trying to do what you described it's not showing up.

    (I had the folders named with dashes instead of underscores -- I changed that, but still no go.)

    I'm doing this with a multisite install -- does that make a difference?

    I appreciate any further direction you can provide.

    Thanks again!

  7. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    Try zipping the folder on your desktop and then use the template installer on the Connections : Templates admin page.

  8. bws-online
    Member
    Posted 1 year ago #

    Beautiful! Much appreciated Steven.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic