Would like the labels to be on top of pages instead of the bottom. Is this possible?
Asked by Yasushi Shiba:

Hello.

I'm a newbee on the forum but I've been using Confluece for 2+ years.

Is this possible? I would like this since we put the status/condition of a page in the label and the pages could be very long and we would like to avoid scrolling down (which can take time) to find the labels.

It seems currently not possible. How shoud I proceed?

Thank you for your support.

Best regards,

Yan


Answers:
author: David at David Simpson Apps
body: Browse to:

```
Confluence Administration | Look & Feel | Layouts
```

in the **Content Layouts** section, edit **Page Layout**.

Move this line:

```
#parse ("/labels/labels-editor.vm")
```

...below this line:

```
#parse ("/decorators/includes/page-metadata.vm")
```

That's it. If you're using a custom theme, then you'll need to edit the **page.vmd** file in your theme.

comments: author: Colin Goudie
body: Yan, checkout the link to **Layout** in the space's **Space Admin**. You can do it there as well I think


author: Yasushi Shiba
body: Dear David et all,

Thank you very much for the quick answer (amazing speed!)

I was hoping that the change could be made in a particular space only (the theme type of "Document"), not the whole server. (as a slight change could "shock" the 100's of other users). Is this possible?

Thank you again.

- Yan


author: David at David Simpson Apps
body: I think you can only change it in...

```
Space Administration | Look and Feel | Layout
```

...if you're using the default theme.

Otherwise, you get a message like this:

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

If that's no good, the a custom theme containing just an edited version of **page.vmd** is the way forward.


author: Colin Goudie
body: I think if the global theme is the 'default Confluence theme' then you can edit it it also in Spaces. I haven't tested it, but I would assume then that this only affects that space, but ..... maybe not


author: Colin Goudie
body: I'd think you'd need to download the documentation theme plugin, make your chnages, rebuild and install in your instance

<https://studio.plugins.atlassian.com/source/browse/DOC>

comments: author: Terence McGhee
body: Thank you very much.


author: Colin Goudie
body: What theme are you using? If you are using the 'default theme' you can adjust the page layout by going to Admin-\>Look and Feel-\>Layouts

You edit the Page Layout under Content Layouts. You'll see where the body is defined and you can move the label related markup above it.

```
<div class="wiki-content">
   $body
</div>

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title
$trackbackUtils.getPingUrl($page))

#parse ("http://wiki.tributech.com.au/admin/viewdefaultdecorator.action?decoratorName=/labels/labels-editor.vm")
```

comments: author: David at David Simpson Apps
body: Ha! You got there first. Thanks for the vote :)


author: andres_collart
body: How do you do this in the latest version of Confluence? I don't see the Layouts option anymore.


author: Terence McGhee
body: What if a person is using "Document" theme? What page.vmd file needs to be altered in this case? I searched high and low, but couldln't find a "themes" directory.

I would appreciate any help.

Thanks!


author: David at David Simpson Apps
body: If you want it for **just one space**, then try moving the labels div with some javascript...

Browse to...

```
Confluence Administration | Look & Feel | Custom HTML
```

...in **At end of the BODY**, paste this code:

```
<script type="text/javascript">
  AJS.toInit(function(){
    if (AJS.params.spaceKey == "YOUR-SPACE-KEY"){ // add the specific space key here
      AJS.$('.page-metadata:first').after( AJS.$( '#labels-section') );
    }
  });
</script>


// Unfortunately, this little bit of javascript will get loaded on every page, so a custom theme would really be best.
```


Tags: label

theme