Editing the Main.vmd

Hi All,

I need to edit the main decorator of the documentation theme. Confluence frustratingly doesn't allow me do this through the web interface. It throws an error:

You can not customise the site look and feel while a theme is active. You must first disable the currently configured theme.

Is there any workaround for this please? I just need to include a few bits to the header of the documentation theme.

Thanks

3 answers

Is there any way to change the Main.vmd of the documentation theme pls?

I have the same problem. I would like to add some macros to the page layout and it is not allowed. I tried to add a modified docmentation theme but that didn t work too

0 vote

You can not customise the site look and feel while a theme is active. You must first disable the currently configured theme.

This is an expected behavior on Confluence. You can only customise a layout from the layout default theme. Also, to better understand how this customising question works or how to create a theme, refer to the following articles:

About the main.vmd, it's used to control the header and footer of each page, not the page specific presentation logic. And we have the Decorator Macro that works with it in customisations, please, see the following page:

Also, If the layout has changed so extensively as to not be visible, you can browse to the URL directly:

http://<confluence base url>/admin/resetdecorator.action?decoratorName=decorators/main.vmd

Substitute the base URL and the appropriate vmd file.

Don't forget to perform a backup of those files before the changings. Hope it helps you.

Kind Regards

I managed to find main.vmd in the decorators folder -- then tried to make a simple edit. However, the changes did not load when I refresh the page in the browser.

I have even tried to restart Confluence server, no luck! It still didn't pick up my changes (as if it loads from cache or somewhere else).

Any ideas how I can make changes to the main.vmd and get it applied? Thanks!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

304 views 11 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you