Overwriting Dollie Templates

  1. Home
  2. Knowledge Base
  3. Extending
  4. Overwriting Dollie Templates

There might be times when there is something in the Customer Dashboard that you would like to change. For example you'd like to remove a section/block or change the design. This can be easily done by creating a Child Theme and copying over the template from the Dollie plugin folder into your child theme.

What are child themes?

A WordPress child theme is a theme that inherits the functionality of another theme, called the parent theme, and allows you to modify, or add to, the functionality of that parent theme.

The parent/child structure has been a very popular method to harness the power of WordPress themes because it allows you to modify the styling and layout of a parent theme to any extent without editing the files of the parent theme itself. That way, when the parent theme is updated, your modifications are preserved.

We advise you to never make any changes to the Dollie templates inside the plugin, but simply using a Child Theme.

How to overwrite Dollie templates

If you want to overwrite a template you simply need to copy over the template file you want to overwrite from the Dollie plugin into your Child Theme.

For example if you'd like to modify the customer sites listing you would copy:

dollie/templates/loop/sites.php

to

my-child-theme/dollie/loop/sites.php

You can now change the template as you wish. It’s as easy as that.

Warning - Templates can get out of date

Make sure to keep track of our changelogs to see if templates have changed.This will ensure you can update the template if new features are added or bugs are fixed.

Was this article helpful?

Related Articles

Need More Help?

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.