Moving the page title in Confluence

Hello,

We had a slight customisation to the standard Documentation scheme on our Confluence site, which seems to have been lost during an upgrade to v3.5.

Our site logo is quite wide, and the change was to move the page title down to the line below (rather than the space next to the logo) so that there's more room for it, and longer titles don't wrap around.

I think - according to some information left by the previous administrator - that this was done using the change below. But we've reapplied this after the upgrade and it's not worked.

Can anybody tell me how to do this? Thanks.

-----

The previous change seems to have been:

With the help of Atlassian support this was achieved by getting the following file from (the server):

/usr/local/confluence-data/bundled-plugins/doctheme-1.0.7.jar

Within this file we simply modified the main.vmd file, which is in:

doctheme-1.0.7\doctheme\decorators

Change this:

<h1 id="title-heading" class="pagetitle">
#if ($sitemeshPage.getProperty("page.username"))
#set ($tildeUsername = "~$username")
#logoBlock($tildeUsername)
#else
#logoBlock($spaceKey)
#end
<span id="title-text">
#if ($sitemeshPage.getProperty("page.title-text-span"))
$sitemeshPage.getProperty("page.title-text-span")
#else
#pageTitleLink()
#end
</span>
</h1>

to:

#if ($sitemeshPage.getProperty("page.username"))
#set ($tildeUsername = "~$username")
#logoBlock($tildeUsername)
#else
#logoBlock($spaceKey)
#end
<h1 id="title-heading" class="pagetitle">
<span id="title-text">
#if ($sitemeshPage.getProperty("page.title-text-span"))
$sitemeshPage.getProperty("page.title-text-span")
#else
#pageTitleLink()
#end
</span>
</h1>

Then we just upload the customised doctheme-1.0.7.jar file via _Confluence Admin >> plugins_

5 answers

2 votes
David Simpson Community Champion Aug 07, 2011
Why not just add some custom CSS to the global stylesheet in the admin section e.g. #title-text { display: block; }

Becasue I have been working in windows recently...did you restart Confluence after you made the change? It might be worth a try.

0 vote
Joe Clark Atlassian Team Aug 08, 2011

Random guess: try blowing away the temporary plugin directories in your Confluence home directory and re-starting Confluence. Perhaps a combination of the fact that the doc theme is (a) a bundled plugin, and (b) the version of your jar file is unchanged. The following directories are safe to delete:

  • /plugins-temp
  • /plugins-osgi-cache/transformed-plugins

We did restart Confluence, although not sure about removing the temporary plugins first (our IT guys applied the change itself).

I just tried the stylesheet suggestion, but the global stylesheet doesn't apply to spaces using themes, and we're using the Documentation Theme.

(After a delay) I've asked IT to try the suggestion of deleting these directories. To clarify, it's just the transformed-plugins directory that should be deleted, not the whole plugins-osgi-cache, right?

I'm facing exactly the same situation:

* logo size too large.

* I would like to add a line break after the logo so the page title starts always in a new line.

Richard / Joseph did you find a solution?

Like Richard we are using the "Documentation Theme" as default for all Spaces (like probably 99% of all Confluence customer who are not working with Adaptavist add-ons).

0 vote
Joe Clark Atlassian Team Aug 08, 2011

Restarting Confluence to pick up a a plugin change shouldn't be necessary - Confluence has a built-in system that reloads changed plugins. :-)

No, I never got it to work despite trying the suggestions... Eventually we just got used to the title wrapping around, but it would still be nice to fix.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

1,005 views 23 13
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