You probably want to adapt the look of the estate lists and forms to fit into your website better. To achieve this, you can modify the templates.

Copy included templates

When you update the plugin, WordPress will overwrite the entire folder. This means that all changes you make to the included templates will be lost after an update. As a solution, our plugin allows you to put customized templates somewhere else where they will not be overwritten.

You can place custom templates in a special plugin folder, or if you have a custom theme, you can place the templates inside your theme. If you are unsure, we recommend you use the plugin folder.

First you need to be able to copy the included templates, for example using FTP or a file manager plugin. The included templates are located at “/wp-content/plugins/onoffice-for-wp-websites/templates.dist”.

If you want to use the special plugin folder, copy the contents of this folder into “/wp-content/plugins/onoffice-personalized/templates” so that you have a file at “/wp-content/plugins/onoffice-personalized/templates/estate/default.php”.

If you want to include the customized templates in you theme, copy the included templates into a folder “onoffice-theme/templates” in your theme, so that you have a file at “/wp-content/themes/{your theme}/onoffice-theme/templates/estate/default.php”.

Customize the template

Now you are ready to edit the templates in your code editor. You can read through the PHP code to see how the included templates work and make your customizations. You can also adapt the CSS by editing the “onoffice-style.css”. Do not forget to upload the customized templates into the correct folder.

Select the customized template

In the settings of each estate list, address list and form, you can now select your custom template instead of the included one. In the box “Layout & Design”, open the “Personalized” section and select the corresponding personalized template. After you save, you can preview your first customizations!

Note that the included templates are meant for specific content types. For example, the “default.php” is meant for estate lists, “default_detail.php” for the detail view and “defaultform.php” for the contact form. If you are unsure which one is used for a specific content type, create a new item of that type. The plugin will choose a suitable template by default, so you can see which template is meant for that content type.

You can also create new templates with names of your choice. You just need to place them next to the other template files inside the corresponding folder, so that you can later select them in the settings.

That’s it! You know the basics necessary to use the plugin. Do you want to explore the advanced features?